From a077f45ba9830136f2869e39e50680e7dfc41c5b Mon Sep 17 00:00:00 2001 From: guerler Date: Thu, 1 Mar 2018 18:26:30 -0500 Subject: [PATCH] Match search word with description --- client/galaxy/scripts/components/PluginList.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/galaxy/scripts/components/PluginList.vue b/client/galaxy/scripts/components/PluginList.vue index dbc1e0b3665..b4a69d0076f 100644 --- a/client/galaxy/scripts/components/PluginList.vue +++ b/client/galaxy/scripts/components/PluginList.vue @@ -6,7 +6,7 @@
- +
@@ -92,6 +92,11 @@ export default { let href = `${Galaxy.root}plugins/visualizations/${plugin.name}/show?dataset_id=${this.selected}`; $("#galaxy_main").attr("src", href); }, + match: function(plugin) { + return !this.search || + plugin.name.indexOf(this.search) != -1 || + (plugin.description && plugin.description.indexOf(this.search) != -1); + }, _errorMessage: function(e) { let message = e && e.response && e.response.data && e.response.data.err_msg; return message || "Request failed for unkown reason.";