diff --git a/packages/editor-ui/src/components/MainHeader.vue b/packages/editor-ui/src/components/MainHeader.vue index 2502380929..1a40ce261d 100644 --- a/packages/editor-ui/src/components/MainHeader.vue +++ b/packages/editor-ui/src/components/MainHeader.vue @@ -29,10 +29,6 @@ -
- -
-
@@ -158,10 +154,6 @@ export default mixins( }, }, methods: { - clearExecutionData () { - this.$store.commit('setWorkflowExecutionData', null); - this.updateNodesExecutionIssues(); - }, async openWorkflow (workflowId: string) { // Change to other workflow this.$router.push({ @@ -288,27 +280,4 @@ export default mixins( border-top: 1px solid #707070; } -.clear-execution { - position: absolute; - top: calc(50% - 19px); - line-height: 65px; - right: 200px; - width: 38px; - height: 38px; - line-height: 38px; - font-size: 18px; - text-align: center; - border-radius: 19px; - background-color: $--color-primary-light; - color: $--color-primary; - - &:hover { - transform: scale(1.1); - } - - .clear-execution-icon { - color: #f56c6c; - } -} - diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 4bc4ac46b9..da779d108e 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -84,7 +84,16 @@ > - + + +
@@ -225,6 +234,9 @@ export default mixins( } return returnClasses; }, + workflowExecution (): IExecutionResponse | null { + return this.$store.getters.getWorkflowExecution; + }, workflowRunning (): boolean { return this.$store.getters.isActionActive('workflowRunning'); }, @@ -259,6 +271,10 @@ export default mixins( // @ts-ignore await this.debouncedFunctions[functionName].apply(this, inputParameters); }, + clearExecutionData () { + this.$store.commit('setWorkflowExecutionData', null); + this.updateNodesExecutionIssues(); + }, openNodeCreator () { this.createNodeActive = true; },