mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Use a placeholder string for all dropdowns
This commit is contained in:
@ -152,6 +152,7 @@ update msg model =
|
||||
type alias ViewSettings a =
|
||||
{ display : a -> String
|
||||
, icon : a -> Maybe String
|
||||
, selectPlaceholder : String
|
||||
, style : DS.DropdownStyle
|
||||
}
|
||||
|
||||
@ -204,7 +205,7 @@ viewStyled2 cfg error sel model =
|
||||
]
|
||||
[ selIcon
|
||||
, Maybe.map cfg.display sel
|
||||
|> Maybe.withDefault "Select…"
|
||||
|> Maybe.withDefault cfg.selectPlaceholder
|
||||
|> text
|
||||
]
|
||||
, div
|
||||
|
Reference in New Issue
Block a user