mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-04 06:05:59 +00:00
Don't trigger search when fields are cleared
This commit is contained in:
parent
6846f2f46e
commit
b8558d6837
@ -480,7 +480,7 @@ update flags settings msg model =
|
||||
( { model | nameModel = next }
|
||||
, Cmd.none
|
||||
)
|
||||
(model.nameModel /= Nothing && str == "")
|
||||
False
|
||||
|
||||
SetAllName str ->
|
||||
let
|
||||
@ -491,7 +491,7 @@ update flags settings msg model =
|
||||
( { model | allNameModel = next }
|
||||
, Cmd.none
|
||||
)
|
||||
(model.allNameModel /= Nothing && str == "")
|
||||
False
|
||||
|
||||
SetFulltext str ->
|
||||
let
|
||||
@ -502,7 +502,7 @@ update flags settings msg model =
|
||||
( { model | fulltextModel = next }
|
||||
, Cmd.none
|
||||
)
|
||||
(model.fulltextModel /= Nothing && str == "")
|
||||
False
|
||||
|
||||
KeyUpMsg (Just Enter) ->
|
||||
NextState ( model, Cmd.none ) True
|
||||
|
Loading…
x
Reference in New Issue
Block a user