mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Set search when clicking on parts of the item card
When user clicks on correspondent etc. on an item card, the search is set to this value.
This commit is contained in:
@ -1,4 +1,10 @@
|
||||
module Util.Update exposing (andThen1, andThen2)
|
||||
module Util.Update exposing
|
||||
( andThen1
|
||||
, andThen2
|
||||
, cmdUnit
|
||||
)
|
||||
|
||||
import Task
|
||||
|
||||
|
||||
andThen1 : List (a -> ( a, Cmd b )) -> a -> ( a, Cmd b )
|
||||
@ -36,3 +42,8 @@ andThen2 fs m =
|
||||
in
|
||||
List.foldl update init fs
|
||||
|> combine
|
||||
|
||||
|
||||
cmdUnit : a -> Cmd a
|
||||
cmdUnit a =
|
||||
Task.perform (\_ -> a) (Task.succeed ())
|
||||
|
Reference in New Issue
Block a user