diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 20a39a2..801803f 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -260,7 +260,7 @@ class CCPExecutionHistory extends HTMLElement { connectNewExecution(){ document.addEventListener("newexecution", ev=>{ - this.pending.push(ev.details) + this.pending.push(ev.detail) }) } @@ -271,6 +271,15 @@ class CCPExecutionHistory extends HTMLElement { let exec = this.#data.filter(e=>e.id === data.jobID)[0] if(exec){ this.refreshExecution(exec.id) + }else{ + this.pending.filter(pe=>{ + if(pe === data.jobId){ + this.refreshExecution(pe) + return false + }else{ + return true + } + }) } } this.#interval = window.setInterval( ()=>{