diff options
author | nfebe <fenn25.fn@gmail.com> | 2025-01-30 09:29:15 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2025-01-30 17:35:00 +0000 |
commit | 8863b854204d71cbc1cf412e5abd6a0b7503bf18 (patch) | |
tree | 30b17d8bff59663298c8081a6ecb330e1591b042 /apps/files/src | |
parent | bf5a54d13268c208c2e0e5ec1e9c29962bd8829a (diff) | |
download | nextcloud-server-8863b854204d71cbc1cf412e5abd6a0b7503bf18.tar.gz nextcloud-server-8863b854204d71cbc1cf412e5abd6a0b7503bf18.zip |
fix: Use `searchFrom` property for client side pluginsfix/noid/fix-unified-search-provider-id
The client-side plugin `in-folder` uses the `files` provider, this makes it
overlap with the main files provider itself.
This change follows eecda06f1ad2832cc2a7b31d646458f730c8412a after it was discovered
that some apps/providers like `dav` use providers from another app like `contacts`
Signed-off-by: nfebe <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files/src')
-rw-r--r-- | apps/files/src/plugins/search/folderSearch.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/src/plugins/search/folderSearch.ts b/apps/files/src/plugins/search/folderSearch.ts index 33dae31995c..626b1daa72b 100644 --- a/apps/files/src/plugins/search/folderSearch.ts +++ b/apps/files/src/plugins/search/folderSearch.ts @@ -23,6 +23,7 @@ function init() { OCA.UnifiedSearch.registerFilterAction({ id: 'in-folder', appId: 'files', + searchFrom: 'files', label: t('files', 'In folder'), icon: imagePath('files', 'app.svg'), callback: (showFilePicker: boolean = true) => { @@ -38,6 +39,7 @@ function init() { emit('nextcloud:unified-search:add-filter', { id: 'in-folder', appId: 'files', + searchFrom: 'files', payload: folder, filterUpdateText: t('files', 'Search in folder: {folder}', { folder: folder.basename }), filterParams: { path: folder.path }, |