fix communications between form and monitor
This commit is contained in:
parent
d4748110c8
commit
e485d1f434
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue