fix communications between form and monitor

This commit is contained in:
dcore94 2023-05-05 18:29:40 +02:00
parent d4748110c8
commit e485d1f434
1 changed files with 4 additions and 3 deletions

View File

@ -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