mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Edit name 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.ItemsAndName exposing (ItemsAndName)
|
||||
import Api.Model.ItemsAndRefs exposing (ItemsAndRefs)
|
||||
import Api.Model.ReferenceList exposing (ReferenceList)
|
||||
import Data.Direction exposing (Direction)
|
||||
@ -47,5 +48,12 @@ multiUpdate flags ids change receive =
|
||||
in
|
||||
Api.setTagsMultiple flags data receive
|
||||
|
||||
NameChange name ->
|
||||
let
|
||||
data =
|
||||
ItemsAndName items name
|
||||
in
|
||||
Api.setNameMultiple flags data receive
|
||||
|
||||
_ ->
|
||||
Cmd.none
|
||||
|
Reference in New Issue
Block a user