Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-09-19 17:45:30 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-09-19 19:28:40 +0300
commitf0cd60b21bd5d1a0d493dbe222743d3c3040bc98 (patch)
treeee232f11de477db21884103132913790f798fa04 /core
parentea08fabca3c10370d393ab10480fd82c36e1eaac (diff)
Clear search results when remove search queryfix/carl/clean-search-result-when-resetting
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core')
-rw-r--r--core/src/views/UnifiedSearch.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue
index 5d0a2b62a22..60ef3ef0309 100644
--- a/core/src/views/UnifiedSearch.vue
+++ b/core/src/views/UnifiedSearch.vue
@@ -444,6 +444,9 @@ export default {
// Do not search if not long enough
if (this.query.trim() === '' || this.isShortQuery) {
+ for (const type of this.typesIDs) {
+ this.$delete(this.results, type)
+ }
return
}