mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Allow to restore deleted items in webui
This commit is contained in:
@ -1605,11 +1605,7 @@ update key flags inav settings msg model =
|
||||
)
|
||||
|
||||
RestoreItem ->
|
||||
let
|
||||
_ =
|
||||
Debug.todo "implement"
|
||||
in
|
||||
resultModelCmd ( model, Cmd.none )
|
||||
resultModelCmd ( model, Api.restoreItem flags model.item.id SaveResp )
|
||||
|
||||
|
||||
|
||||
|
@ -1482,7 +1482,7 @@ searchTabs texts ddd flags settings model =
|
||||
]
|
||||
}
|
||||
, { name = tabName TabTrashed
|
||||
, title = texts.basics.deleted
|
||||
, title = texts.trashcan
|
||||
, titleRight = []
|
||||
, info = Nothing
|
||||
, body =
|
||||
@ -1490,7 +1490,7 @@ searchTabs texts ddd flags settings model =
|
||||
MB.Checkbox
|
||||
{ id = "trashed"
|
||||
, value = model.searchMode == Data.SearchMode.Trashed
|
||||
, label = texts.basics.deleted
|
||||
, label = texts.trashcan
|
||||
, tagger = \_ -> ToggleSearchMode
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user