From e485d1f434090a7ed55f4205d2ed07b06df11f4e Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 5 May 2023 18:29:40 +0200 Subject: [PATCH] fix communications between form and monitor --- ccp/js/executionhistorycontroller.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 20afa71..9b2096a 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 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.updateList() + this.#data = [ dummy ].concat(this.#data)*/ + this.refreshExecutions() }) } @@ -574,6 +574,7 @@ class CCPExecutionHistory extends HTMLElement { { target : "span[name=runtime]", apply : (e,d)=>{ + const rt = d.runtime ? d.runtime : "" e.textContent = d.runtime + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '') const t = d.infrastructuretype.match(/docker/i) ? "docker" : null const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t