mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 02:48:26 +00:00
Edit direction of multiple items
This commit is contained in:
@ -6,6 +6,7 @@ module Comp.ItemDetail.FormChange exposing
|
||||
import Api
|
||||
import Api.Model.BasicResult exposing (BasicResult)
|
||||
import Api.Model.IdName exposing (IdName)
|
||||
import Api.Model.ItemsAndDirection exposing (ItemsAndDirection)
|
||||
import Api.Model.ItemsAndName exposing (ItemsAndName)
|
||||
import Api.Model.ItemsAndRef exposing (ItemsAndRef)
|
||||
import Api.Model.ItemsAndRefs exposing (ItemsAndRefs)
|
||||
@ -63,5 +64,12 @@ multiUpdate flags ids change receive =
|
||||
in
|
||||
Api.setFolderMultiple flags data receive
|
||||
|
||||
DirectionChange dir ->
|
||||
let
|
||||
data =
|
||||
ItemsAndDirection items (Data.Direction.toString dir)
|
||||
in
|
||||
Api.setDirectionMultiple flags data receive
|
||||
|
||||
_ ->
|
||||
Cmd.none
|
||||
|
Reference in New Issue
Block a user