feat(ui): add prompt message during workflow running

This commit is contained in:
Fu Diwei 2025-01-11 16:51:21 +08:00
parent 598d0705fb
commit d9f38c38a6
3 changed files with 3 additions and 1 deletions

View File

@ -50,5 +50,6 @@
"workflow.detail.orchestration.action.release.failed.uncompleted": "Please complete the orchestration first", "workflow.detail.orchestration.action.release.failed.uncompleted": "Please complete the orchestration first",
"workflow.detail.orchestration.action.run": "Run", "workflow.detail.orchestration.action.run": "Run",
"workflow.detail.orchestration.action.run.confirm": "You have unreleased changes. Do you really want to run this workflow based on the latest released version?", "workflow.detail.orchestration.action.run.confirm": "You have unreleased changes. Do you really want to run this workflow based on the latest released version?",
"workflow.detail.orchestration.action.run.prompt": "Running... Please check the history later",
"workflow.detail.runs.tab": "History runs" "workflow.detail.runs.tab": "History runs"
} }

View File

@ -50,5 +50,6 @@
"workflow.detail.orchestration.action.release.failed.uncompleted": "流程编排未完成,请检查是否有节点未配置", "workflow.detail.orchestration.action.release.failed.uncompleted": "流程编排未完成,请检查是否有节点未配置",
"workflow.detail.orchestration.action.run": "执行", "workflow.detail.orchestration.action.run": "执行",
"workflow.detail.orchestration.action.run.confirm": "你有尚未发布的更改。你确定要以最近一次发布的版本继续执行吗?", "workflow.detail.orchestration.action.run.confirm": "你有尚未发布的更改。你确定要以最近一次发布的版本继续执行吗?",
"workflow.detail.orchestration.action.run.prompt": "执行中……请稍后查看执行历史",
"workflow.detail.runs.tab": "执行历史" "workflow.detail.runs.tab": "执行历史"
} }

View File

@ -189,7 +189,7 @@ const WorkflowDetail = () => {
await runWorkflow(workflowId!); await runWorkflow(workflowId!);
messageApi.success(t("common.text.operation_succeeded")); messageApi.info(t("workflow.detail.orchestration.action.run.prompt"));
} catch (err) { } catch (err) {
setIsRunning(false); setIsRunning(false);
unsubscribeFn?.(); unsubscribeFn?.();