mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +00:00
Indicate when the search-menu is not used
This commit is contained in:
parent
7d7460b1c9
commit
8e0282c25f
@ -153,13 +153,20 @@ viewSearchBar flags model =
|
|||||||
[ class "item"
|
[ class "item"
|
||||||
, onClick ToggleSearchMenu
|
, onClick ToggleSearchMenu
|
||||||
, href "#"
|
, href "#"
|
||||||
, title "Open search menu"
|
, if model.searchType == ContentOnlySearch then
|
||||||
|
title "Search menu disabled"
|
||||||
|
|
||||||
|
else
|
||||||
|
title "Open search menu"
|
||||||
]
|
]
|
||||||
[ i [ class "angle left icon" ] []
|
[ i [ class "angle left icon" ] []
|
||||||
, i [ class "icons" ]
|
, i [ class "icons" ]
|
||||||
[ i [ class "grey bars icon" ] []
|
[ i [ class "grey bars icon" ] []
|
||||||
, i [ class "bottom left corner search icon" ] []
|
, i [ class "bottom left corner search icon" ] []
|
||||||
, if hasMoreSearch model then
|
, if model.searchType == ContentOnlySearch then
|
||||||
|
i [ class "top right red corner delete icon" ] []
|
||||||
|
|
||||||
|
else if hasMoreSearch model then
|
||||||
i [ class "top right blue corner circle icon" ] []
|
i [ class "top right blue corner circle icon" ] []
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -179,7 +186,7 @@ viewSearchBar flags model =
|
|||||||
[]
|
[]
|
||||||
, input
|
, input
|
||||||
[ type_ "text"
|
[ type_ "text"
|
||||||
, placeholder "Search …"
|
, placeholder "Quick Search …"
|
||||||
, onInput SetBasicSearch
|
, onInput SetBasicSearch
|
||||||
, Util.Html.onKeyUpCode KeyUpMsg
|
, Util.Html.onKeyUpCode KeyUpMsg
|
||||||
, Maybe.map value searchInput
|
, Maybe.map value searchInput
|
||||||
|
Loading…
x
Reference in New Issue
Block a user