From b565089caa9d301699d343835e940e9fe2d9329d Mon Sep 17 00:00:00 2001 From: davidvader Date: Wed, 7 Aug 2024 13:05:32 -0500 Subject: [PATCH] chore: var naming --- src/elm/Pages/Org_/Repo_/Build_.elm | 4 ++-- src/elm/Pages/Org_/Repo_/Build_/Services.elm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/elm/Pages/Org_/Repo_/Build_.elm b/src/elm/Pages/Org_/Repo_/Build_.elm index ff78134f1..91b751220 100644 --- a/src/elm/Pages/Org_/Repo_/Build_.elm +++ b/src/elm/Pages/Org_/Repo_/Build_.elm @@ -487,7 +487,7 @@ update shared route msg model = -- hash will change when no line is selected and the selected group changes -- this means expansion msg will double up on fetching logs unless instructed not to - willHashChange = + willFocusChange = case ( model.focus.group, model.focus.a, model.focus.b ) of ( Just g, Nothing, _ ) -> g /= options.step.number @@ -504,7 +504,7 @@ update shared route msg model = -- triggered by a click that will change the hash -- the focus changes and the logs are not loaded fetchLogs = - not (options.triggeredFromClick && willHashChange) + not (options.triggeredFromClick && willFocusChange) && ((didFocusChange && not isLogLoaded) || not isFromHashChanged) getLogEffect = diff --git a/src/elm/Pages/Org_/Repo_/Build_/Services.elm b/src/elm/Pages/Org_/Repo_/Build_/Services.elm index 122261a74..67249ab72 100644 --- a/src/elm/Pages/Org_/Repo_/Build_/Services.elm +++ b/src/elm/Pages/Org_/Repo_/Build_/Services.elm @@ -478,7 +478,7 @@ update shared route msg model = -- hash will change when no line is selected and the selected group changes -- this means the expansion msg will double up on fetching logs unless instructed not to - willHashChange = + willFocusChange = case ( model.focus.group, model.focus.a, model.focus.b ) of ( Just g, Nothing, _ ) -> g /= options.service.number @@ -495,7 +495,7 @@ update shared route msg model = -- triggered by a click that will change the hash -- the focus changes and the logs are not loaded fetchLogs = - not (options.triggeredFromClick && willHashChange) + not (options.triggeredFromClick && willFocusChange) && ((didFocusChange && not isLogLoaded) || not isFromHashChanged) getLogEffect =