diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js
index 01975a7..7dd1dd3 100644
--- a/ccp/js/executionformcontroller.js
+++ b/ccp/js/executionformcontroller.js
@@ -45,16 +45,22 @@ class CCPExecutionForm extends HTMLElement{
+
@@ -90,7 +111,16 @@ class CCPExecutionForm extends HTMLElement{
`
}
+ lockRender(){
+ this.#rootdoc.querySelector(".plexiglass").classList.toggle("d-none")
+ }
+
+ unlockRender(){
+ this.#rootdoc.querySelector(".plexiglass").classList.toggle("d-none")
+ }
+
loadMethod(){
+ this.lockRender()
return this.#boot.secureFetch(this.#serviceurl + "/processes/" + this.#method).then(
(resp)=>{
if(resp.status === 200){
@@ -105,9 +135,10 @@ class CCPExecutionForm extends HTMLElement{
}).then(resp=>{
this.#data.executable = resp.status === 200
+ this.unlockRender()
}).then(()=>{
this.showMethod()
- }).catch(err=>alert(err))
+ }).catch(err=>{alert(err); this.unlockRender()})
}
showEmpty(resp){
@@ -122,6 +153,7 @@ class CCPExecutionForm extends HTMLElement{
}
sendExecutionRequest(){
+ this.lockRender()
const url = this.#serviceurl + "/processes/" + this.#method + "/execution"
const req = this.buildRequest()
this.#boot.secureFetch(
@@ -141,7 +173,8 @@ class CCPExecutionForm extends HTMLElement{
if(this.#executionmonitor){
this.#executionmonitor.addExecution( { self : data.links[0].href, events : [data], jobID : data.jobID, method : this.#data.title})
}
- }).catch(err => alert("Unable to call execute: " + err))
+ this.unlockRender()
+ }).catch(err => {alert("Unable to call execute: " + err); this.unlockRender()})
}
buildRequest(){