From 841c47ab46ef18b6de0677140d8e51a3c0d5007a Mon Sep 17 00:00:00 2001 From: dcore94 Date: Fri, 5 May 2023 18:45:33 +0200 Subject: [PATCH] prepared for handling notification --- ccp/js/executionformcontroller.js | 1 - ccp/js/executionhistorycontroller.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index b78bcdc..261473d 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -164,7 +164,6 @@ class CCPExecutionForm extends HTMLElement{ const event = new CustomEvent('newexecution', { detail: data.jobID }); document.dispatchEvent(event) this.unlockRender() - alert("Execution accepted with id:" + data.jobID) }).catch(err => {alert("Unable to call execute: " + err); this.unlockRender()}) } diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 1bf008c..226eb11 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -259,7 +259,7 @@ class CCPExecutionHistory extends HTMLElement { connectNewExecution(){ document.addEventListener("newexecution", ev=>{ - window.setTimeout(()=>this.refreshExecution(), 2000) + //add toast here }) }