From a387ffb913a3f2c0d4996e4edecf3e848a9a09cf Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 24 May 2023 10:18:16 +0200 Subject: [PATCH] added confirmation dialog for re-execution --- ccp/js/executionhistorycontroller.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 58809f6..01e6b12 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -496,8 +496,10 @@ class CCPExecutionHistory extends HTMLElement { this.export(id, "application/prov-o+xml", id + ".xml") } if(ev.target.getAttribute("name") === "reexecute1"){ - const id = ev.currentTarget.getAttribute("data-index") - this.reexecute(id, 1) + if(window.confirm("Please confirm re-execution?")){ + const id = ev.currentTarget.getAttribute("data-index") + this.reexecute(id, 1) + } } if(ev.target.getAttribute("name") === "archive"){ if(confirm(" Please confirm aarchiving of execution to workspace?")){