mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
First ui view of preview images for items
Users can choose to not show them via ui settings
This commit is contained in:
@ -19,6 +19,7 @@ type Field
|
||||
| Date
|
||||
| DueDate
|
||||
| Direction
|
||||
| PreviewImage
|
||||
|
||||
|
||||
all : List Field
|
||||
@ -33,6 +34,7 @@ all =
|
||||
, Date
|
||||
, DueDate
|
||||
, Direction
|
||||
, PreviewImage
|
||||
]
|
||||
|
||||
|
||||
@ -71,6 +73,9 @@ fromString str =
|
||||
"direction" ->
|
||||
Just Direction
|
||||
|
||||
"preview" ->
|
||||
Just PreviewImage
|
||||
|
||||
_ ->
|
||||
Nothing
|
||||
|
||||
@ -105,6 +110,9 @@ toString field =
|
||||
Direction ->
|
||||
"direction"
|
||||
|
||||
PreviewImage ->
|
||||
"preview"
|
||||
|
||||
|
||||
label : Field -> String
|
||||
label field =
|
||||
@ -136,6 +144,9 @@ label field =
|
||||
Direction ->
|
||||
"Direction"
|
||||
|
||||
PreviewImage ->
|
||||
"Preview Image"
|
||||
|
||||
|
||||
fromList : List String -> List Field
|
||||
fromList strings =
|
||||
|
Reference in New Issue
Block a user