added confirmation dialog for re-execution

This commit is contained in:
dcore94 2023-05-24 10:18:16 +02:00
parent 8231178cba
commit a387ffb913
1 changed files with 4 additions and 2 deletions

View File

@ -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?")){