broadcast event on new execution
This commit is contained in:
parent
cc746e0fef
commit
90b8348d8c
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue