Skip to content

Commit

Permalink
Remove reset from followers to prevent race condition confusion till …
Browse files Browse the repository at this point in the history
…we have a better solution
  • Loading branch information
supermario committed Nov 23, 2024
1 parent a21b03d commit e8e6618
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions extra/LocalDev/LocalDev.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ lamderaDevBar topDown devbar nodeType =
div
[ style "border-top" "1px solid #393939"
]
[ expandedUI topDown devbar
[ expandedUI topDown devbar nodeType
]

else
Expand All @@ -1255,7 +1255,7 @@ lamderaDevBar topDown devbar nodeType =
[ style "border-bottom" "1px solid #393939"
, style "padding-bottom" "5px"
]
[ expandedUI topDown devbar ]
[ expandedUI topDown devbar nodeType ]

else
text ""
Expand Down Expand Up @@ -1383,7 +1383,7 @@ spacer width =
span [ style "width" (String.fromInt width ++ "px"), style "display" "inline-block" ] []


expandedUI topDown devbar =
expandedUI topDown devbar nodeType =
let
modeText =
case devbar.freeze of
Expand Down Expand Up @@ -1443,12 +1443,17 @@ expandedUI topDown devbar =

else
div [] [ versionInfo, envDocs ]
, case devbar.freeze of
False ->
buttonDev "Reset Backend" ResetDebugStoreBE
, case nodeType of
Leader ->
case devbar.freeze of
False ->
buttonDev "Reset Backend" ResetDebugStoreBE

True ->
buttonDev "Reset Both" ResetDebugStoreBoth
True ->
buttonDev "Reset Both" ResetDebugStoreBoth

Follower ->
div [ style "padding" "8px 8px", style "text-align" "center" ] [ text "Use leader tab (green dot) for reset options" ]
, if devbar.freeze then
buttonDev "Reset Frontend" ResetDebugStoreFE

Expand Down

0 comments on commit e8e6618

Please sign in to comment.