mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Edit folder of multiple items
This commit is contained in:
@ -7,6 +7,7 @@ import Api
|
||||
import Api.Model.BasicResult exposing (BasicResult)
|
||||
import Api.Model.IdName exposing (IdName)
|
||||
import Api.Model.ItemsAndName exposing (ItemsAndName)
|
||||
import Api.Model.ItemsAndRef exposing (ItemsAndRef)
|
||||
import Api.Model.ItemsAndRefs exposing (ItemsAndRefs)
|
||||
import Api.Model.ReferenceList exposing (ReferenceList)
|
||||
import Data.Direction exposing (Direction)
|
||||
@ -55,5 +56,12 @@ multiUpdate flags ids change receive =
|
||||
in
|
||||
Api.setNameMultiple flags data receive
|
||||
|
||||
FolderChange id ->
|
||||
let
|
||||
data =
|
||||
ItemsAndRef items (Maybe.map .id id)
|
||||
in
|
||||
Api.setFolderMultiple flags data receive
|
||||
|
||||
_ ->
|
||||
Cmd.none
|
||||
|
Reference in New Issue
Block a user