mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Refactor to allow internal card links into search menu
Also allows to exchange the preview-url in the item card
This commit is contained in:
@ -141,6 +141,8 @@ module Api exposing
|
||||
, setTags
|
||||
, setTagsMultiple
|
||||
, setUnconfirmed
|
||||
, shareAttachmentPreviewURL
|
||||
, shareItemBasePreviewURL
|
||||
, startClassifier
|
||||
, startEmptyTrash
|
||||
, startOnceNotifyDueItems
|
||||
@ -2288,6 +2290,16 @@ searchShare flags token search receive =
|
||||
}
|
||||
|
||||
|
||||
shareAttachmentPreviewURL : String -> String
|
||||
shareAttachmentPreviewURL id =
|
||||
"/api/v1/share/attachment/" ++ id ++ "/preview?withFallback=true"
|
||||
|
||||
|
||||
shareItemBasePreviewURL : String -> String
|
||||
shareItemBasePreviewURL itemId =
|
||||
"/api/v1/share/item/" ++ itemId ++ "/preview?withFallback=true"
|
||||
|
||||
|
||||
|
||||
--- Helper
|
||||
|
||||
|
Reference in New Issue
Block a user