From 7df6b11a3209dd3b984c2fce6fdb2c5be907a4a5 Mon Sep 17 00:00:00 2001 From: Bogdan Bogdanov Date: Wed, 2 Sep 2020 09:00:03 +0300 Subject: [PATCH] Add multiple plugin selection (#47) --- src/components/dialogs/SearchDialog.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/dialogs/SearchDialog.vue b/src/components/dialogs/SearchDialog.vue index 7b6e117..174d4a5 100644 --- a/src/components/dialogs/SearchDialog.vue +++ b/src/components/dialogs/SearchDialog.vue @@ -29,11 +29,12 @@ @@ -138,12 +139,12 @@ export default class SearchDialog extends HasTask { valid: boolean; category: string | null; pattern: string | null; - plugin: string | null; + plugins: string[] | null; } = { valid: false, category: null, pattern: null, - plugin: null, + plugins: null, }; grid: GridConfig = { @@ -226,7 +227,7 @@ export default class SearchDialog extends HasTask { private async _startSearch(): Promise<{ id: number }> { const result = await api.startSearch( this.searchForm.pattern, - this.searchForm.plugin, + this.searchForm.plugins && this.searchForm.plugins.join('|'), this.searchForm.category );