mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-26 09:05:06 +00:00
Fix reset search for content-only and provide it on top bar
This commit is contained in:
parent
795cd8bc80
commit
ee6b54006c
@ -47,6 +47,7 @@ update mId key flags settings msg model =
|
|||||||
{ model
|
{ model
|
||||||
| searchOffset = 0
|
| searchOffset = 0
|
||||||
, searchType = defaultSearchType flags
|
, searchType = defaultSearchType flags
|
||||||
|
, contentOnlySearch = Nothing
|
||||||
}
|
}
|
||||||
in
|
in
|
||||||
update mId key flags settings (SearchMenuMsg Comp.SearchMenu.ResetForm) nm
|
update mId key flags settings (SearchMenuMsg Comp.SearchMenu.ResetForm) nm
|
||||||
|
@ -311,7 +311,8 @@ viewSearchBar flags model =
|
|||||||
]
|
]
|
||||||
[ i [ class "filter icon" ] []
|
[ i [ class "filter icon" ] []
|
||||||
]
|
]
|
||||||
, div [ class "right fitted item" ]
|
, div [ class "right menu" ]
|
||||||
|
[ div [ class "fitted item" ]
|
||||||
[ div [ class "ui left icon right action input" ]
|
[ div [ class "ui left icon right action input" ]
|
||||||
[ i
|
[ i
|
||||||
[ classList
|
[ classList
|
||||||
@ -344,6 +345,15 @@ viewSearchBar flags model =
|
|||||||
(Just searchTypeItem)
|
(Just searchTypeItem)
|
||||||
model.searchTypeDropdown
|
model.searchTypeDropdown
|
||||||
)
|
)
|
||||||
|
, a
|
||||||
|
[ class "ui icon basic button"
|
||||||
|
, href "#"
|
||||||
|
, onClick ResetSearch
|
||||||
|
, title "Reset search form"
|
||||||
|
]
|
||||||
|
[ i [ class "undo icon" ] []
|
||||||
|
]
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user