From 53338a8fa5aa42c7fe660c29eb2a5caabacd8aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A4=E6=9C=88?= Date: Mon, 23 Oct 2023 02:16:44 -0500 Subject: [PATCH] fix: notify message before run pipeline (#4219) Signed-off-by: yazhou --- src/actions/pipeline.js | 1 + src/pages/devops/containers/Pipelines/Detail/Activity/index.jsx | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/pipeline.js b/src/actions/pipeline.js index bdf92d0fa03..4370cf9d586 100644 --- a/src/actions/pipeline.js +++ b/src/actions/pipeline.js @@ -259,6 +259,7 @@ export default { on({ store, success, devops, cluster, ...props }) { const modal = Modal.open({ onOk: async (parameters, branch) => { + Notify.success({ content: `${t('PIPELINE_RUN_START_SI')}` }) await store.runBranch({ devops, name: props.params.name, diff --git a/src/pages/devops/containers/Pipelines/Detail/Activity/index.jsx b/src/pages/devops/containers/Pipelines/Detail/Activity/index.jsx index 90ec69e43a9..3f732688a69 100644 --- a/src/pages/devops/containers/Pipelines/Detail/Activity/index.jsx +++ b/src/pages/devops/containers/Pipelines/Detail/Activity/index.jsx @@ -145,7 +145,6 @@ export default class Activity extends React.Component { disabledBrancheNames: toJS(detail.disabledBrancheNames), parameters: toJS(detail.parameters), success: () => { - Notify.success({ content: `${t('PIPELINE_RUN_START_SI')}` }) this.handleFetch() }, })