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:
@ -1464,6 +1464,9 @@ resetField flags item tagger field =
|
||||
Data.Fields.Direction ->
|
||||
Cmd.none
|
||||
|
||||
Data.Fields.PreviewImage ->
|
||||
Cmd.none
|
||||
|
||||
|
||||
resetHiddenFields :
|
||||
UiSettings
|
||||
|
@ -1,5 +1,6 @@
|
||||
module Comp.ItemDetail.View exposing (view)
|
||||
|
||||
import Api
|
||||
import Api.Model.Attachment exposing (Attachment)
|
||||
import Comp.AttachmentMeta
|
||||
import Comp.DatePicker
|
||||
@ -320,7 +321,7 @@ renderAttachmentView : UiSettings -> Model -> Int -> Attachment -> Html Msg
|
||||
renderAttachmentView settings model pos attach =
|
||||
let
|
||||
fileUrl =
|
||||
"/api/v1/sec/attachment/" ++ attach.id
|
||||
Api.fileURL attach.id
|
||||
|
||||
attachName =
|
||||
Maybe.withDefault "No name" attach.name
|
||||
|
Reference in New Issue
Block a user