ccp-features #8

Merged
m.lettere merged 44 commits from ccp-features into master 2023-06-28 19:18:25 +02:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit c92b818027 - Show all commits

View File

@ -8,7 +8,7 @@ class CCPExecutionHistory extends HTMLElement {
#data = [];
#pending = [];
#filtered = [];
#socket = null;
#sockets = null;
#interval = null;
#searchfield = null;
#fileupload = null;
@ -274,6 +274,10 @@ class CCPExecutionHistory extends HTMLElement {
this.#socket = new WebSocket(this.#broadcasturl + "/executions");
this.#socket.onmessage = event=>{
const data = JSON.parse(event.data)
if(!data.jobID){
console.log("New logs " + event.data)
return
}
let exec = this.#data.filter(e=>e.id === data.jobID)[0]
if(exec){
this.refreshExecution(exec.id)