View attachments from a share

This commit is contained in:
eikek
2021-10-06 01:14:30 +02:00
parent 9eb2f9c6fe
commit c62b8526be
5 changed files with 19 additions and 9 deletions

View File

@@ -476,6 +476,7 @@ itemCardList texts _ settings model =
(Data.ItemSelection.Active svm.ids)
previewUrl
previewUrlFallback
(.id >> Api.fileURL)
_ ->
Comp.ItemCardList.ViewConfig
@@ -483,6 +484,7 @@ itemCardList texts _ settings model =
Data.ItemSelection.Inactive
previewUrl
previewUrlFallback
(.id >> Api.fileURL)
in
[ Html.map ItemCardListMsg
(Comp.ItemCardList.view2 texts.itemCardList

View File

@@ -25,6 +25,7 @@ view texts settings model =
, selection = Data.ItemSelection.Inactive
, previewUrl = \attach -> Api.shareAttachmentPreviewURL attach.id
, previewUrlFallback = \item -> Api.shareItemBasePreviewURL item.id
, attachUrl = .id >> Api.shareFileURL
}
in
div []