refactor(editor): Remove old execution view route and its dependants (#4651)

* fix(editor): Remove old execution view header

* fix(editor): Remove old execution route
This commit is contained in:
Csaba Tuncsik
2023-01-16 10:11:15 +01:00
committed by GitHub
parent 38aa99b182
commit c53ce1e5b7
8 changed files with 5 additions and 196 deletions

View File

@@ -2,10 +2,9 @@
<div>
<div :class="{ 'main-header': true, expanded: !this.uiStore.sidebarMenuCollapsed }">
<div v-show="!hideMenuBar" class="top-menu">
<ExecutionDetails v-if="isExecutionPage" />
<WorkflowDetails v-else />
<WorkflowDetails />
<tab-bar
v-if="onWorkflowPage && !isExecutionPage"
v-if="onWorkflowPage"
:items="tabBarItems"
:activeTab="activeHeaderTab"
@select="onTabSelected"
@@ -19,7 +18,6 @@
import mixins from 'vue-typed-mixins';
import { pushConnection } from '@/mixins/pushConnection';
import WorkflowDetails from '@/components/MainHeader/WorkflowDetails.vue';
import ExecutionDetails from '@/components/MainHeader/ExecutionDetails/ExecutionDetails.vue';
import TabBar from '@/components/MainHeader/TabBar.vue';
import {
MAIN_HEADER_TABS,
@@ -38,7 +36,6 @@ export default mixins(pushConnection, workflowHelpers).extend({
name: 'MainHeader',
components: {
WorkflowDetails,
ExecutionDetails,
TabBar,
},
data() {
@@ -56,9 +53,6 @@ export default mixins(pushConnection, workflowHelpers).extend({
{ value: MAIN_HEADER_TABS.EXECUTIONS, label: this.$locale.baseText('generic.executions') },
];
},
isExecutionPage(): boolean {
return this.$route.name === VIEWS.EXECUTION;
},
activeNode(): INodeUi | null {
return this.ndvStore.activeNode;
},