mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-02 13:32:51 +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"
|
||||
, onClick ToggleSearchMenu
|
||||
, 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 "icons" ]
|
||||
[ i [ class "grey bars 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" ] []
|
||||
|
||||
else
|
||||
@ -179,7 +186,7 @@ viewSearchBar flags model =
|
||||
[]
|
||||
, input
|
||||
[ type_ "text"
|
||||
, placeholder "Search …"
|
||||
, placeholder "Quick Search …"
|
||||
, onInput SetBasicSearch
|
||||
, Util.Html.onKeyUpCode KeyUpMsg
|
||||
, Maybe.map value searchInput
|
||||
|
Loading…
x
Reference in New Issue
Block a user