fixed bug for delete

This commit is contained in:
dcore94 2023-01-31 18:09:57 +01:00
parent feaea1c48c
commit 5d9d5451a5
1 changed files with 2 additions and 2 deletions

View File

@ -189,12 +189,12 @@ class CCPExecutionHistory extends HTMLElement {
on_click: ev=>{
if(ev.target.getAttribute("name") === "delete"){
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)
}
}
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)
}
},