mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 18:08:25 +00:00
More ui tweaks to item list
This commit is contained in:
@ -5,6 +5,7 @@ module Data.Direction exposing
|
||||
, icon
|
||||
, iconFromMaybe
|
||||
, iconFromString
|
||||
, labelFromMaybe
|
||||
, toString
|
||||
)
|
||||
|
||||
@ -70,3 +71,10 @@ iconFromMaybe : Maybe String -> String
|
||||
iconFromMaybe ms =
|
||||
Maybe.map iconFromString ms
|
||||
|> Maybe.withDefault unknownIcon
|
||||
|
||||
|
||||
labelFromMaybe : Maybe String -> String
|
||||
labelFromMaybe ms =
|
||||
Maybe.andThen fromString ms
|
||||
|> Maybe.map toString
|
||||
|> Maybe.withDefault "Direction"
|
||||
|
Reference in New Issue
Block a user