mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 18:38:26 +00:00
Throttle search requests
Throttle search requests when typing. Also fix handling subscriptions in main.
This commit is contained in:
@ -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" ]
|
||||
|
Reference in New Issue
Block a user