Throttle search requests

Throttle search requests when typing. Also fix handling subscriptions
in main.
This commit is contained in:
Eike Kettner
2020-06-13 20:58:15 +02:00
parent 5468e24b55
commit 217fef7384
8 changed files with 160 additions and 132 deletions

View File

@ -499,6 +499,9 @@ view settings model =
[ text headline
]
]
nameIcon =
i [ class "left align icon" ] []
in
div [ class "ui form" ]
[ div [ class "inline field" ]
@ -514,7 +517,7 @@ view settings model =
]
]
]
, formHeader (i [ class "left align icon" ] []) "By Name"
, formHeader nameIcon "Names"
, div [ class "field" ]
[ label [] [ text "All Names" ]
, input
@ -528,7 +531,7 @@ view settings model =
]
]
, div [ class "field" ]
[ label [] [ text "Name or Notes" ]
[ label [] [ text "Name" ]
, input
[ type_ "text"
, onInput SetName
@ -536,7 +539,7 @@ view settings model =
]
[]
, span [ class "small-info" ]
[ text "Looks in item name and notes only."
[ text "Looks in item name."
]
]
, span [ class "small-info" ]