From 4b35938a1c94e067223edbad23fb3d0951723a17 Mon Sep 17 00:00:00 2001 From: r00gm Date: Tue, 3 Sep 2024 10:16:25 +0200 Subject: [PATCH 1/2] added new message component --- .../NodeViewUnfinishedWorkflowMessage.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue diff --git a/packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue b/packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue new file mode 100644 index 0000000000000..e074d624eb0ba --- /dev/null +++ b/packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue @@ -0,0 +1,18 @@ + + + From 79b616d280b099f42fe965c24651aeb1ec70f7fd Mon Sep 17 00:00:00 2001 From: r00gm Date: Tue, 3 Sep 2024 10:17:45 +0200 Subject: [PATCH 2/2] implement message component --- packages/editor-ui/src/views/NodeView.v2.vue | 8 +++----- packages/editor-ui/src/views/NodeView.vue | 11 +++-------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index 9446dc13910f1..04cd656e8d298 100644 --- a/packages/editor-ui/src/views/NodeView.v2.vue +++ b/packages/editor-ui/src/views/NodeView.v2.vue @@ -11,6 +11,7 @@ import { ref, useCssModule, watch, + h, } from 'vue'; import { useRoute, useRouter } from 'vue-router'; import WorkflowCanvas from '@/components/canvas/WorkflowCanvas.vue'; @@ -97,6 +98,7 @@ import type { PinDataSource } from '@/composables/usePinnedData'; import { useClipboard } from '@/composables/useClipboard'; import { useBeforeUnload } from '@/composables/useBeforeUnload'; import { getResourcePermissions } from '@/permissions'; +import NodeViewUnfinishedWorkflowMessage from '@/components/NodeViewUnfinishedWorkflowMessage.vue'; const LazyNodeCreation = defineAsyncComponent( async () => await import('@/components/Node/NodeCreation.vue'), @@ -1062,11 +1064,7 @@ function onExecutionOpenedWithWaitTill(data: IExecutionResponse) { if ((data as ExecutionSummary).waitTill) { toast.showMessage({ title: i18n.baseText('nodeView.thisExecutionHasntFinishedYet'), - message: `${i18n.baseText('nodeView.refresh')} ${i18n.baseText( - 'nodeView.toSeeTheLatestStatus', - )}.
${i18n.baseText( - 'nodeView.moreInfo', - )}`, + message: h(NodeViewUnfinishedWorkflowMessage), type: 'warning', duration: 0, }); diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index 608d9cb82f494..7d95ed54f6653 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1,5 +1,5 @@