Hide the language menu in login page when there are no options

This commit is contained in:
Eike Kettner 2021-04-11 16:55:32 +02:00
parent c2599eda4c
commit 255fe82005

View File

@ -186,7 +186,10 @@ langMenu model =
, span [ class "ml-2" ] [ text langMsg.label ]
]
in
div [ class "relative" ]
div
[ class "relative"
, classList [ ( "hidden", List.length Messages.UiLanguage.all == 1 ) ]
]
[ a
[ class dropdownLink
, onClick ToggleLangMenu