diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-17 14:06:29 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-17 21:22:47 +0200 |
commit | 068ab4130f196e5da64d3624c1ff46db557e432e (patch) | |
tree | 5d0c5825975884fda8a5986a18d15aa1fb6cf4fa /core/src | |
parent | 8c87769b8d78fed534f90cad447d83d22af4047a (diff) | |
download | nextcloud-server-068ab4130f196e5da64d3624c1ff46db557e432e.tar.gz nextcloud-server-068ab4130f196e5da64d3624c1ff46db557e432e.zip |
fix(files): Ensure search query is cleared when changing view or directory
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/UnifiedSearchModal.vue | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/src/views/UnifiedSearchModal.vue b/core/src/views/UnifiedSearchModal.vue index f09d2325537..c76f3e6f982 100644 --- a/core/src/views/UnifiedSearchModal.vue +++ b/core/src/views/UnifiedSearchModal.vue @@ -13,11 +13,12 @@ <div class="unified-search-modal__header"> <h2>{{ t('core', 'Unified search') }}</h2> <NcInputField ref="searchInput" + data-cy-unified-search-input :value.sync="searchQuery" type="text" :label="t('core', 'Search apps, files, tags, messages') + '...'" @update:value="debouncedFind" /> - <div class="unified-search-modal__filters"> + <div class="unified-search-modal__filters" data-cy-unified-search-filters> <NcActions :menu-name="t('core', 'Apps and Settings')" :open.sync="providerActionMenuIsOpen"> <template #icon> <ListBox :size="20" /> @@ -31,7 +32,7 @@ {{ provider.name }} </NcActionButton> </NcActions> - <NcActions :menu-name="t('core', 'Date')" :open.sync="dateActionMenuIsOpen"> + <NcActions :menu-name="t('core', 'Date')" :open.sync="dateActionMenuIsOpen" data-cy-unified-search-filter="date"> <template #icon> <CalendarRangeIcon :size="20" /> </template> @@ -57,6 +58,7 @@ <SearchableList :label-text="t('core', 'Search people')" :search-list="userContacts" :empty-content-text="t('core', 'Not found')" + data-cy-unified-search-filter="people" @search-term-change="debouncedFilterContacts" @item-selected="applyPersonFilter"> <template #trigger> @@ -68,7 +70,7 @@ </NcButton> </template> </SearchableList> - <NcButton v-if="supportFiltering" @click="closeModal"> + <NcButton v-if="supportFiltering" data-cy-unified-search-filter="current-view" @click="closeModal"> {{ t('core', 'Filter in current view') }} <template #icon> <FilterIcon :size="20" /> |