From 7aed45f902e6b9066c51a02b35a153a7f17cd647 Mon Sep 17 00:00:00 2001 From: Assunta DeSanto Date: Tue, 16 Jan 2024 22:51:18 -0500 Subject: [PATCH] Update the workflow markdown report when editing the step label --- client/src/components/Workflow/Editor/Index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/components/Workflow/Editor/Index.vue b/client/src/components/Workflow/Editor/Index.vue index 73494320a0fa..0c31fd994555 100644 --- a/client/src/components/Workflow/Editor/Index.vue +++ b/client/src/components/Workflow/Editor/Index.vue @@ -169,6 +169,7 @@ import { Toast } from "composables/toast"; import { storeToRefs } from "pinia"; import Vue, { computed, onUnmounted, ref, unref } from "vue"; +import { replaceLabel } from "@/components/Markdown/parse"; import { getUntypedWorkflowParameters } from "@/components/Workflow/Editor/modules/parameters"; import { ConfirmDialog } from "@/composables/confirmDialog"; import { useDatatypesMapper } from "@/composables/datatypesMapper"; @@ -653,7 +654,10 @@ export default { }, onLabel(nodeId, newLabel) { const step = { ...this.steps[nodeId], label: newLabel }; + const oldLabel = this.steps[nodeId].label; this.onUpdateStep(step); + const newMarkdown = replaceLabel(this.markdownText, "step", oldLabel, newLabel); + this.onReportUpdate(newMarkdown); }, onScrollTo(stepId) { this.scrollToId = stepId;