fixed bug for delete
This commit is contained in:
parent
feaea1c48c
commit
5d9d5451a5
|
@ -189,12 +189,12 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
on_click: ev=>{
|
on_click: ev=>{
|
||||||
if(ev.target.getAttribute("name") === "delete"){
|
if(ev.target.getAttribute("name") === "delete"){
|
||||||
if(window.confirm("Confirm deletion of this execution?")){
|
if(window.confirm("Confirm deletion of this execution?")){
|
||||||
const index = Number(ev.target.getAttribute("data-index"))
|
const index = Number(ev.currentTarget.getAttribute("data-index"))
|
||||||
this.deleteExecution(this.#executions[index].id)
|
this.deleteExecution(this.#executions[index].id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(ev.target.getAttribute("name") === "zip"){
|
if(ev.target.getAttribute("name") === "zip"){
|
||||||
const index = Number(ev.target.getAttribute("data-index"))
|
const index = Number(ev.currentTarget.getAttribute("data-index"))
|
||||||
this.downloadZIP(this.#executions[index].id)
|
this.downloadZIP(this.#executions[index].id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue