don't show spinner when empty query is submitted (#128)
This commit is contained in:
parent
5cc46b4e11
commit
a3ed2036cb
|
@ -352,6 +352,10 @@ update path navKey result_type options decodeResultItemSource msg model =
|
|||
)
|
||||
|
||||
QueryInputSubmit ->
|
||||
if model.query == Nothing || model.query == Just "" then
|
||||
( model, Cmd.none )
|
||||
|
||||
else
|
||||
( { model | result = RemoteData.Loading }
|
||||
, createUrl
|
||||
path
|
||||
|
|
Loading…
Reference in a new issue