mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Merge pull request #55666 from nextcloud/fix/53038/clear-search
This commit is contained in:
commit
9c8b500116
3 changed files with 6 additions and 5 deletions
|
|
@ -24,8 +24,9 @@ const searchStore = useSearchStore()
|
|||
* we need to clear the search box.
|
||||
*/
|
||||
onBeforeNavigation((to, from, next) => {
|
||||
if (to.params.view !== VIEW_ID && from.params.view === VIEW_ID) {
|
||||
// we are leaving the search view so unset the query
|
||||
if (to.params.view !== VIEW_ID
|
||||
&& (from.params.view === VIEW_ID || from.query.dir !== to.query.dir)) {
|
||||
// we are leaving the search view or navigate to another directory -> unset the query
|
||||
searchStore.query = ''
|
||||
searchStore.scope = 'filter'
|
||||
} else if (to.params.view === VIEW_ID && from.params.view === VIEW_ID) {
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue