prepared for handling notification
This commit is contained in:
parent
849d6405aa
commit
841c47ab46
|
@ -164,7 +164,6 @@ class CCPExecutionForm extends HTMLElement{
|
||||||
const event = new CustomEvent('newexecution', { detail: data.jobID });
|
const event = new CustomEvent('newexecution', { detail: data.jobID });
|
||||||
document.dispatchEvent(event)
|
document.dispatchEvent(event)
|
||||||
this.unlockRender()
|
this.unlockRender()
|
||||||
alert("Execution accepted with id:" + data.jobID)
|
|
||||||
}).catch(err => {alert("Unable to call execute: " + err); this.unlockRender()})
|
}).catch(err => {alert("Unable to call execute: " + err); this.unlockRender()})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -259,7 +259,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
|
|
||||||
connectNewExecution(){
|
connectNewExecution(){
|
||||||
document.addEventListener("newexecution", ev=>{
|
document.addEventListener("newexecution", ev=>{
|
||||||
window.setTimeout(()=>this.refreshExecution(), 2000)
|
//add toast here
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue