From 90b8348d8ca9b995d91e196902ede5ed84f98888 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Thu, 26 Jan 2023 11:31:08 +0100 Subject: [PATCH] broadcast event on new execution --- ccp/js/executionformcontroller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 6badc0c..ec7b215 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -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})