From 5eba5343191665cd4639632ba303464176c279c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20G=C3=B3mez=20Morales?= Date: Tue, 3 Sep 2024 10:41:59 +0200 Subject: [PATCH] fix(editor): Fix notification rendering HTML as text (#10642) --- .../NodeViewUnfinishedWorkflowMessage.vue | 18 ++++++++++++++++++ packages/editor-ui/src/views/NodeView.v2.vue | 8 +++----- packages/editor-ui/src/views/NodeView.vue | 11 +++-------- 3 files changed, 24 insertions(+), 13 deletions(-) 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 @@ + + + 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 @@