prepared for handling notification

This commit is contained in:
dcore94 2023-05-05 18:45:33 +02:00
parent 849d6405aa
commit 841c47ab46
2 changed files with 1 additions and 2 deletions

View File

@ -164,7 +164,6 @@ class CCPExecutionForm extends HTMLElement{
const event = new CustomEvent('newexecution', { detail: data.jobID });
document.dispatchEvent(event)
this.unlockRender()
alert("Execution accepted with id:" + data.jobID)
}).catch(err => {alert("Unable to call execute: " + err); this.unlockRender()})
}

View File

@ -259,7 +259,7 @@ class CCPExecutionHistory extends HTMLElement {
connectNewExecution(){
document.addEventListener("newexecution", ev=>{
window.setTimeout(()=>this.refreshExecution(), 2000)
//add toast here
})
}