Externalize strings in UiSettings page

This commit is contained in:
Eike Kettner
2021-04-03 22:25:54 +02:00
parent e76d574ea3
commit 8f1380fcf5
17 changed files with 371 additions and 152 deletions

View File

@ -49,8 +49,13 @@ update msg model =
--- View2
view2 : Maybe String -> Bool -> Model -> Html Msg
view2 pw isError model =
type alias ViewSettings =
{ placeholder : String
}
view2 : ViewSettings -> Maybe String -> Bool -> Model -> Html Msg
view2 cfg pw isError model =
div [ class "relative" ]
[ div [ class S.inputIcon ]
[ i
@ -81,7 +86,7 @@ view2 pw isError model =
else
""
, placeholder "Password"
, placeholder cfg.placeholder
]
[]
, a