From 39864463635f6d902f2b5a739dfcbd6224e7b533 Mon Sep 17 00:00:00 2001 From: Mutasem Date: Wed, 28 Jul 2021 14:11:26 +0200 Subject: [PATCH] update copy buttons --- .../src/components/Error/NodeViewError.vue | 7 +++---- packages/editor-ui/src/components/RunData.vue | 16 ++++++++++------ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/packages/editor-ui/src/components/Error/NodeViewError.vue b/packages/editor-ui/src/components/Error/NodeViewError.vue index 4c86eb2571..9b721eaecf 100644 --- a/packages/editor-ui/src/components/Error/NodeViewError.vue +++ b/packages/editor-ui/src/components/Error/NodeViewError.vue @@ -37,9 +37,9 @@ Data below may contain sensitive information. Proceed with caution when sharing.
- - - +
+ +
-
+
-
+
- - - + Copy Item Path @@ -266,6 +264,12 @@ export default mixins( }; }, computed: { + hasNodeRun(): boolean { + return Boolean(this.node && this.workflowRunData && this.workflowRunData.hasOwnProperty(this.node.name)); + }, + hasRunError(): boolean { + return Boolean(this.node && this.workflowRunData && this.workflowRunData[this.node.name] && this.workflowRunData[this.node.name][this.runIndex] && this.workflowRunData[this.node.name][this.runIndex].error); + }, workflowRunning (): boolean { return this.$store.getters.isActionActive('workflowRunning'); },