fix communications between form and monitor
This commit is contained in:
parent
d4748110c8
commit
e485d1f434
|
@ -259,10 +259,10 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
|
|
||||||
connectNewExecution(){
|
connectNewExecution(){
|
||||||
document.addEventListener("newexecution", ev=>{
|
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 : []}
|
const dummy = { id : s.jobID, method : s.method, status : "accepted", created : s.updated, updated : s.updated, resources : []}
|
||||||
this.#data = [ dummy ].concat(this.#data)
|
this.#data = [ dummy ].concat(this.#data)*/
|
||||||
this.updateList()
|
this.refreshExecutions()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,6 +574,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
{
|
{
|
||||||
target : "span[name=runtime]",
|
target : "span[name=runtime]",
|
||||||
apply : (e,d)=>{
|
apply : (e,d)=>{
|
||||||
|
const rt = d.runtime ? d.runtime : ""
|
||||||
e.textContent = d.runtime + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '')
|
e.textContent = d.runtime + (d.replicas && d.replicas !== "1" ? ' x ' + d.replicas : '')
|
||||||
const t = d.infrastructuretype.match(/docker/i) ? "docker" : null
|
const t = d.infrastructuretype.match(/docker/i) ? "docker" : null
|
||||||
const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t
|
const t2 = !t && d.infrastructuretype.match(/lxd/i) ? "lxd" : t
|
||||||
|
|
Loading…
Reference in New Issue