This is an automated email from the ASF dual-hosted git repository.

e2corporation pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 56144ff1 fix: disable run if pipeline created or running (#3238)
56144ff1 is described below

commit 56144ff1f81bae10fc4655c35b47dc4a5d257128
Author: Julien Chinapen <[email protected]>
AuthorDate: Wed Sep 28 11:50:42 2022 -0400

    fix: disable run if pipeline created or running (#3238)
---
 config-ui/src/pages/blueprints/blueprint-detail.jsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config-ui/src/pages/blueprints/blueprint-detail.jsx 
b/config-ui/src/pages/blueprints/blueprint-detail.jsx
index 5f860ed9..9e01726b 100644
--- a/config-ui/src/pages/blueprints/blueprint-detail.jsx
+++ b/config-ui/src/pages/blueprints/blueprint-detail.jsx
@@ -494,7 +494,9 @@ const BlueprintDetail = (props) => {
                     onClick={runBlueprint}
                     disabled={
                       !activeBlueprint?.enable ||
-                      currentRun?.status === TaskStatus.RUNNING
+                      [TaskStatus.CREATED, TaskStatus.RUNNING].includes(
+                        currentRun?.status
+                      )
                     }
                   />
                 </div>

Reply via email to