diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 050dee7..ca9658c 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -13,6 +13,8 @@ class CCPExecutionForm extends HTMLElement{ this.#boot = document.querySelector("d4s-boot-2") this.#serviceurl = this.getAttribute("serviceurl") this.#rootdoc = this.attachShadow({ "mode" : "open"}) + + this.connectNewExecutionRequest() this.render() this.showMethod() } @@ -28,6 +30,14 @@ class CCPExecutionForm extends HTMLElement{ } } + connectNewExecutionRequest(){ + document.addEventListener("newexecutionrequest", ev=>{ + if(window.confirm("Confirm overwrite of execution form?")){ + this.setAttribute("method", ev.detail) + } + }) + } + render(){ this.#rootdoc.innerHTML = `