fix communications between form and monitor

This commit is contained in:
dcore94 2023-05-05 18:31:22 +02:00
parent e485d1f434
commit 659feb00ed
1 changed files with 4 additions and 4 deletions

View File

@ -259,10 +259,10 @@ class CCPExecutionHistory extends HTMLElement {
connectNewExecution(){
document.addEventListener("newexecution", ev=>{
/*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.refreshExecutions()
const s = ev.detail
const dummy = { id : s.jobID, method : s.method, runtime : "", status : "accepted", created : s.updated, updated : s.updated, resources : []}
this.#data = [ dummy ].concat(this.#data)
this.updateList()
})
}