diff --git a/packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue b/packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue new file mode 100644 index 0000000000..e074d624eb --- /dev/null +++ b/packages/editor-ui/src/components/NodeViewUnfinishedWorkflowMessage.vue @@ -0,0 +1,18 @@ + + + + + {{ i18.baseText('nodeView.refresh') }} + {{ i18.baseText('nodeView.toSeeTheLatestStatus') }}. + + + {{ i18.baseText('nodeView.moreInfo') }} + + + diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index 9446dc1391..04cd656e8d 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 608d9cb82f..7d95ed54f6 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1,5 +1,5 @@