add confirmation dialogs
This commit is contained in:
parent
77f6f49d6f
commit
cb51f396fe
|
@ -187,7 +187,9 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
this.#archiveupload.addEventListener("click", ev=>{
|
this.#archiveupload.addEventListener("click", ev=>{
|
||||||
const link = ev.target.parentElement.querySelector("input").value
|
const link = ev.target.parentElement.querySelector("input").value
|
||||||
if(link){
|
if(link){
|
||||||
this.fromArchive(link)
|
if(confirm("Confirm importing of execution from link?")){
|
||||||
|
this.fromArchive(link)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -486,8 +488,10 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
this.reexecute(id, 1)
|
this.reexecute(id, 1)
|
||||||
}
|
}
|
||||||
if(ev.target.getAttribute("name") === "archive"){
|
if(ev.target.getAttribute("name") === "archive"){
|
||||||
const id = ev.currentTarget.getAttribute("data-index")
|
if(confirm("Confirm aarchiving of execution to workspace?")){
|
||||||
this.toArchive(id)
|
const id = ev.currentTarget.getAttribute("data-index")
|
||||||
|
this.toArchive(id)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
recurse : [
|
recurse : [
|
||||||
|
|
Loading…
Reference in New Issue