diff --git a/client/src/components/Panels/ToolBox.vue b/client/src/components/Panels/ToolBox.vue index 3589d51b1ab7..50e5aeb10ac7 100644 --- a/client/src/components/Panels/ToolBox.vue +++ b/client/src/components/Panels/ToolBox.vue @@ -6,12 +6,9 @@ import { storeToRefs } from "pinia"; import { computed, type ComputedRef, type PropType, type Ref, ref } from "vue"; import { useRouter } from "vue-router/composables"; -import { getGalaxyInstance } from "@/app"; import { useGlobalUploadModal } from "@/composables/globalUploadModal"; -import { getAppRoot } from "@/onload/loadConfig"; import { type Tool, type ToolSection as ToolSectionType } from "@/stores/toolStore"; import { useToolStore } from "@/stores/toolStore"; -import { type Workflow, type Workflow as WorkflowType } from "@/stores/workflowStore"; import localize from "@/utils/localization"; import { filterTools, getValidPanelItems, getValidToolsInCurrentView, getValidToolsInEachSection } from "./utilities"; @@ -29,8 +26,6 @@ const emit = defineEmits<{ (e: "update:panel-query", query: string): void; (e: "onInsertTool", toolId: string, toolName: string): void; (e: "onInsertModule", moduleName: string, moduleTitle: string | undefined): void; - (e: "onInsertWorkflow", workflowLatestId: string | undefined, workflowName: string): void; - (e: "onInsertWorkflowSteps", workflowId: string, workflowStepCount: number | undefined): void; }>(); const props = defineProps({ @@ -132,44 +127,6 @@ const localPanel: ComputedRef | null> = c } }); -const favWorkflows = computed(() => { - const Galaxy = getGalaxyInstance(); - const storedWorkflowMenuEntries = Galaxy && Galaxy.config.stored_workflow_menu_entries; - if (storedWorkflowMenuEntries) { - const returnedWfs = []; - if (!props.workflow) { - returnedWfs.push({ - title: localize("All workflows") as string, - href: `${getAppRoot()}workflows/list`, - id: "list", - }); - } - const storedWfs = [ - ...storedWorkflowMenuEntries.map((menuEntry: Workflow) => { - return { - id: menuEntry.id, - title: menuEntry.name, - href: `${getAppRoot()}workflows/run?id=${menuEntry.id}`, - }; - }), - ]; - return returnedWfs.concat(storedWfs); - } else { - return []; - } -}); - -const workflowSection = computed(() => { - if (props.workflow && props.editorWorkflows.length > 0) { - return { - name: localize("Workflows"), - elems: props.workflow && props.editorWorkflows, - }; - } else { - return null; - } -}); - const buttonIcon = computed(() => (showSections.value ? faEyeSlash : faEye)); const buttonText = computed(() => (showSections.value ? localize("Hide Sections") : localize("Show Sections"))); @@ -178,15 +135,6 @@ function onInsertModule(module: Record, event: Event) { emit("onInsertModule", module.name, module.title); } -function onInsertWorkflow(workflow: WorkflowType, event: Event) { - event.preventDefault(); - emit("onInsertWorkflow", workflow.latest_id, workflow.name); -} - -function onInsertWorkflowSteps(workflow: WorkflowType) { - emit("onInsertWorkflowSteps", workflow.id, workflow.step_count); -} - function onToolClick(tool: Tool, evt: Event) { if (!props.workflow) { if (tool.id === "upload1") { @@ -309,29 +257,6 @@ function onToggle() { @onFilter="onSectionFilter" /> - -
- -
- -