From 65ef696d43a906efd78ed57914cefead4fa1775b Mon Sep 17 00:00:00 2001 From: nfebe Date: Mon, 24 Nov 2025 15:07:24 +0100 Subject: [PATCH] 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 --- .../components/UnifiedSearch/UnifiedSearchModal.vue | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/core/src/components/UnifiedSearch/UnifiedSearchModal.vue b/core/src/components/UnifiedSearch/UnifiedSearchModal.vue index d799a797de2..abeb2ddd639 100644 --- a/core/src/components/UnifiedSearch/UnifiedSearchModal.vue +++ b/core/src/components/UnifiedSearch/UnifiedSearchModal.vue @@ -27,7 +27,7 @@ :label="t('core', 'Search apps, files, tags, messages') + '...'" @update:value="debouncedFind" />
- + @@ -43,7 +43,7 @@ {{ provider.name }} - + @@ -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) {