broadcast event on new execution

This commit is contained in:
dcore94 2023-01-26 11:31:08 +01:00
parent cc746e0fef
commit 90b8348d8c
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ class CCPExecutionForm extends HTMLElement{
if(data.status !== "accepted"){
throw "Execution has not been accepted by server"
}
const event = new CustomEvent('newexecution', { detail: data.jobID });
document.dispatchEvent(event)
this.#executionmonitor = document.querySelector("d4s-ccp-executionmonitor")
if(this.#executionmonitor){
this.#executionmonitor.addExecution( { self : data.links[0].href, events : [data], jobID : data.jobID, method : this.#data.title})