Skip to content

Commit

Permalink
Fixup: hide proxy auth button if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Jan 6, 2024
1 parent 2e40b00 commit 4cbb2ee
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/webapp/src/main/elm/Page/Login/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ view texts flags currentTheme model =

else
renderOAuthButtons texts flags model
, renderProxyAuthButton texts
, renderProxyAuthButton texts flags
, resultMessage texts model
, renderLangAndSignup texts flags
]
Expand Down Expand Up @@ -190,10 +190,11 @@ renderOAuthButton texts flags item =
]


renderProxyAuthButton : Texts -> Html Msg
renderProxyAuthButton texts =
renderProxyAuthButton : Texts -> Flags -> Html Msg
renderProxyAuthButton texts flags =
div
[ class "flex flex-row space-x-2 flex-wrap items-center justify-center"
, classList [ ( "hidden", not flags.config.proxyAuthEnabled ) ]
]
[ a
[ class S.primaryBasicButton
Expand Down

0 comments on commit 4cbb2ee

Please sign in to comment.