mirror of
https://github.com/nextcloud/server.git
synced 2026-03-11 10:51:43 -04:00
fix(unified-search): prevent provider disabling on content filter apply
When date range or person filters were applied, providers that didn't support these filters were automatically disabled in the UI. This made the in-folder filter appear auto-applied and prevented users from searching non-compatible providers. Remove automatic provider disabling logic from updateDateFilter(), applyPersonFilter(), and removeFilter(). Content filters now apply only to compatible providers via existing compatibility checks while keeping all providers available for selection. Signed-off-by: nfebe <fenn25.fn@gmail.com>
This commit is contained in:
parent
e0e80c852d
commit
65ef696d43
1 changed files with 2 additions and 10 deletions
|
|
@ -27,7 +27,7 @@
|
|||
:label="t('core', 'Search apps, files, tags, messages') + '...'"
|
||||
@update:value="debouncedFind" />
|
||||
<div class="unified-search-modal__filters" data-cy-unified-search-filters>
|
||||
<NcActions :menu-name="t('core', 'Places')" :open.sync="providerActionMenuIsOpen" data-cy-unified-search-filter="places">
|
||||
<NcActions v-model:open="providerActionMenuIsOpen" :menu-name="t('core', 'Places')" data-cy-unified-search-filter="places">
|
||||
<template #icon>
|
||||
<IconListBox :size="20" />
|
||||
</template>
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
{{ provider.name }}
|
||||
</NcActionButton>
|
||||
</NcActions>
|
||||
<NcActions :menu-name="t('core', 'Date')" :open.sync="dateActionMenuIsOpen" data-cy-unified-search-filter="date">
|
||||
<NcActions v-model:open="dateActionMenuIsOpen" :menu-name="t('core', 'Date')" data-cy-unified-search-filter="date">
|
||||
<template #icon>
|
||||
<IconCalendarRange :size="20" />
|
||||
</template>
|
||||
|
|
@ -553,10 +553,6 @@ export default defineComponent({
|
|||
this.filters[existingPersonFilter].name = person.displayName
|
||||
}
|
||||
|
||||
this.providers.forEach(async (provider, index) => {
|
||||
this.providers[index].disabled = !(await this.providerIsCompatibleWithFilters(provider, ['person']))
|
||||
})
|
||||
|
||||
this.debouncedFind(this.searchQuery)
|
||||
unifiedSearchLogger.debug('Person filter applied', { person })
|
||||
},
|
||||
|
|
@ -610,7 +606,6 @@ export default defineComponent({
|
|||
for (let i = 0; i < this.filters.length; i++) {
|
||||
if (this.filters[i].id === filter.id) {
|
||||
this.filters.splice(i, 1)
|
||||
this.enableAllProviders()
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
@ -649,9 +644,6 @@ export default defineComponent({
|
|||
this.filters.push(this.dateFilter)
|
||||
}
|
||||
|
||||
this.providers.forEach(async (provider, index) => {
|
||||
this.providers[index].disabled = !(await this.providerIsCompatibleWithFilters(provider, ['since', 'until']))
|
||||
})
|
||||
this.debouncedFind(this.searchQuery)
|
||||
},
|
||||
applyQuickDateRange(range) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue