Merge items in webui

This commit is contained in:
eikek
2021-08-16 12:55:25 +02:00
parent 85085ec173
commit 8099b78b0e
5 changed files with 42 additions and 8 deletions

View File

@ -80,6 +80,7 @@ module Api exposing
, login
, loginSession
, logout
, mergeItems
, moveAttachmentBefore
, newInvite
, postCustomField
@ -1470,6 +1471,20 @@ getJobQueueStateTask flags =
--- Item (Mulit Edit)
mergeItems :
Flags
-> List String
-> (Result Http.Error BasicResult -> msg)
-> Cmd msg
mergeItems flags items receive =
Http2.authPost
{ url = flags.config.baseUrl ++ "/api/v1/sec/items/merge"
, account = getAccount flags
, body = Http.jsonBody (Api.Model.IdList.encode (IdList items))
, expect = Http.expectJson receive Api.Model.BasicResult.decoder
}
reprocessMultiple :
Flags
-> Set String