From 659feb00ed260f0554b8f89b91c3bff3bd20086e Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 5 May 2023 18:31:22 +0200 Subject: [PATCH] fix communications between form and monitor --- ccp/js/executionhistorycontroller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 9b2096a..0732edf 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -259,10 +259,10 @@ class CCPExecutionHistory extends HTMLElement { connectNewExecution(){ document.addEventListener("newexecution", ev=>{ - /*const s = ev.detail - const dummy = { id : s.jobID, method : s.method, status : "accepted", created : s.updated, updated : s.updated, resources : []} - this.#data = [ dummy ].concat(this.#data)*/ - this.refreshExecutions() + const s = ev.detail + const dummy = { id : s.jobID, method : s.method, runtime : "", status : "accepted", created : s.updated, updated : s.updated, resources : []} + this.#data = [ dummy ].concat(this.#data) + this.updateList() }) }