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:
Eike Kettner
2020-11-14 01:44:15 +01:00
parent faf97222ea
commit 795cd8bc80
3 changed files with 48 additions and 3 deletions

View File

@ -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 ())