From c53ce1e5b7ea2bbd4f617f842cefa660c7bfe72e Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Mon, 16 Jan 2023 10:11:15 +0100 Subject: [PATCH] refactor(editor): Remove old execution view route and its dependants (#4651) * fix(editor): Remove old execution view header * fix(editor): Remove old execution route --- .../ExecutionDetails/ExecutionDetails.vue | 128 ------------------ .../MainHeader/ExecutionDetails/ReadOnly.vue | 27 ---- .../src/components/MainHeader/MainHeader.vue | 10 +- packages/editor-ui/src/constants.ts | 1 - packages/editor-ui/src/router.ts | 17 --- packages/editor-ui/src/stores/ui.ts | 2 +- packages/editor-ui/src/utils/canvasUtils.ts | 2 +- packages/editor-ui/src/views/NodeView.vue | 14 +- 8 files changed, 5 insertions(+), 196 deletions(-) delete mode 100644 packages/editor-ui/src/components/MainHeader/ExecutionDetails/ExecutionDetails.vue delete mode 100644 packages/editor-ui/src/components/MainHeader/ExecutionDetails/ReadOnly.vue diff --git a/packages/editor-ui/src/components/MainHeader/ExecutionDetails/ExecutionDetails.vue b/packages/editor-ui/src/components/MainHeader/ExecutionDetails/ExecutionDetails.vue deleted file mode 100644 index b7c0264613..0000000000 --- a/packages/editor-ui/src/components/MainHeader/ExecutionDetails/ExecutionDetails.vue +++ /dev/null @@ -1,128 +0,0 @@ - - - - - diff --git a/packages/editor-ui/src/components/MainHeader/ExecutionDetails/ReadOnly.vue b/packages/editor-ui/src/components/MainHeader/ExecutionDetails/ReadOnly.vue deleted file mode 100644 index c25955ce1f..0000000000 --- a/packages/editor-ui/src/components/MainHeader/ExecutionDetails/ReadOnly.vue +++ /dev/null @@ -1,27 +0,0 @@ - - - - - diff --git a/packages/editor-ui/src/components/MainHeader/MainHeader.vue b/packages/editor-ui/src/components/MainHeader/MainHeader.vue index e19c4650af..6d052bce3b 100644 --- a/packages/editor-ui/src/components/MainHeader/MainHeader.vue +++ b/packages/editor-ui/src/components/MainHeader/MainHeader.vue @@ -2,10 +2,9 @@
- - + { return MAIN_HEADER_TABS.WORKFLOW; } else { const executionTabRoutes = [ - VIEWS.EXECUTION.toString(), + VIEWS.WORKFLOW_EXECUTIONS.toString(), VIEWS.EXECUTION_PREVIEW.toString(), VIEWS.EXECUTION_HOME.toString(), ]; diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index e21bad4680..525fd645f1 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -476,16 +476,8 @@ export default mixins( isDemo(): boolean { return this.$route.name === VIEWS.DEMO; }, - isExecutionView(): boolean { - return this.$route.name === VIEWS.EXECUTION; - }, showCanvasAddButton(): boolean { - return ( - this.loadingService === null && - !this.containsTrigger && - !this.isDemo && - !this.isExecutionView - ); + return this.loadingService === null && !this.containsTrigger && !this.isDemo; }, lastSelectedNode(): INodeUi | null { return this.uiStore.getLastSelectedNode; @@ -2486,10 +2478,6 @@ export default mixins( } else if (this.$route.name === VIEWS.TEMPLATE_IMPORT) { const templateId = this.$route.params.id; await this.openWorkflowTemplate(templateId); - } else if (this.isExecutionView) { - // Load an execution - const executionId = this.$route.params.id; - await this.openExecution(executionId); } else { const result = this.uiStore.stateIsDirty; if (result) {