From a467a47ac6b2d18a08419bf1aba7f60c26f8a4f0 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 5 May 2023 18:34:24 +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 0732edf..c2bf6ff 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -575,9 +575,10 @@ 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 + const infratype = d.infrastructuretype ? d.infrastructuretype : "" + e.textContent = rt + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '') + const t = infratype.match(/docker/i) ? "docker" : null + const t2 = !t && infratype.match(/lxd/i) ? "lxd" : t e.classList.add(t2) } },