aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/unified-search.ts
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/unified-search.ts')
-rw-r--r--core/src/unified-search.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/unified-search.ts b/core/src/unified-search.ts
index fd5f9cb1fdf..a13b1036da1 100644
--- a/core/src/unified-search.ts
+++ b/core/src/unified-search.ts
@@ -36,6 +36,7 @@ Vue.mixin({
interface UnifiedSearchAction {
id: string;
appId: string;
+ searchFrom: string;
label: string;
icon: string;
callback: () => void;
@@ -44,9 +45,9 @@ interface UnifiedSearchAction {
// Register the add/register filter action API globally
window.OCA = window.OCA || {}
window.OCA.UnifiedSearch = {
- registerFilterAction: ({ id, appId, label, callback, icon }: UnifiedSearchAction) => {
+ registerFilterAction: ({ id, appId, searchFrom, label, callback, icon }: UnifiedSearchAction) => {
const searchStore = useSearchStore()
- searchStore.registerExternalFilter({ id, appId, label, callback, icon })
+ searchStore.registerExternalFilter({ id, appId, searchFrom, label, callback, icon })
},
}