diff --git a/ccp/js/executionformcontroller.js b/ccp/js/executionformcontroller.js index d164464..6270cc2 100644 --- a/ccp/js/executionformcontroller.js +++ b/ccp/js/executionformcontroller.js @@ -15,8 +15,19 @@ class CCPExecutionForm extends HTMLElement{ this.#rootdoc = this.attachShadow({ "mode" : "open"}) this.connectNewExecutionRequest() + this.render() - this.showMethod() + + const params = new URLSearchParams(window.location.search) + 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() + } } static get observedAttributes() { @@ -81,20 +92,26 @@ class CCPExecutionForm extends HTMLElement{
-
+
- - + + +
+
+
+ +
@@ -387,6 +404,10 @@ class CCPExecutionForm extends HTMLElement{ return false } }, + { + target: "a[name=direct_link_method]", + apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.pathname + "?method=" + d.id + } ] } diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index 794817b..95ac1e5 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -119,19 +119,26 @@ class CCPExecutionHistory extends HTMLElement { -
- - - +
+
+ + + +
+
@@ -158,8 +165,9 @@ class CCPExecutionHistory extends HTMLElement {
@@ -657,6 +665,10 @@ class CCPExecutionHistory extends HTMLElement { this.generateCode(id, lang, `${id}.${ext}`) } }, + { + target : "a[name=direct_link_execution]", + apply : (e,d)=>e.href = e.textContent = window.location.origin + window.location.pathname + "?execution=" + d.id + }, { target : "div[name=logterminalcontainer]", apply : (e,d)=>{