diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index 41ff9fd..c8f6273 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -16,14 +16,18 @@ class CCPExecutionForm extends HTMLElement{ this.connectNewExecutionRequest() + this.render() + const params = new URLSearchParams(window.location.search) - if(params.get('method')){ + if(params.get('execution')){ + const execution = { id : params.get('execution') } + this.prepareFromExecution(execution) + } else if(params.get('method')){ this.#method = params.get('method') this.loadMethod() + } else { + this.showMethod() } - - this.render() - this.showMethod() } static get observedAttributes() {