From a39f0786f9390a970af6b2112aa128dcdb504a9f Mon Sep 17 00:00:00 2001 From: Martin Cech Date: Thu, 5 Oct 2023 22:36:05 -0400 Subject: [PATCH] add a "get more workflows" button to the bottom of the workflow list --- .../components/Workflow/Import/TrsSearch.vue | 9 ++++++++- client/src/components/Workflow/WorkflowList.vue | 17 +++++++++++++++++ client/src/entry/analysis/router.js | 3 +++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/client/src/components/Workflow/Import/TrsSearch.vue b/client/src/components/Workflow/Import/TrsSearch.vue index eaf27326d374..fd3dbd686f77 100644 --- a/client/src/components/Workflow/Import/TrsSearch.vue +++ b/client/src/components/Workflow/Import/TrsSearch.vue @@ -14,6 +14,13 @@ import TrsServerSelection from "./TrsServerSelection.vue"; import TrsTool from "./TrsTool.vue"; import LoadingSpan from "@/components/LoadingSpan.vue"; +const props = defineProps({ + search: { + type: String, + default: null, + }, +}); + type TrsSearchData = { id: string; name: string; @@ -71,7 +78,7 @@ watch(query, async () => { function onTrsSelection(selection: TrsSelection) { trsSelection.value = selection; trsServer.value = selection.id; - query.value = ""; + query.value = props.search ? props.search : ""; } function onTrsSelectionError(message: string) { diff --git a/client/src/components/Workflow/WorkflowList.vue b/client/src/components/Workflow/WorkflowList.vue index 0501c31c6e78..afea55db2917 100644 --- a/client/src/components/Workflow/WorkflowList.vue +++ b/client/src/components/Workflow/WorkflowList.vue @@ -78,6 +78,17 @@ + +
+ + Get more workflows + +
+
diff --git a/client/src/entry/analysis/router.js b/client/src/entry/analysis/router.js index c0d6d8010bc6..220c6e02c763 100644 --- a/client/src/entry/analysis/router.js +++ b/client/src/entry/analysis/router.js @@ -536,6 +536,9 @@ export function getRouter(Galaxy) { { path: "workflows/trs_search", component: TrsSearch, + props: (route) => ({ + search: route.query.query, + }), }, { path: "workflows/:storedWorkflowId/invocations",