added support for initializing from execution
This commit is contained in:
parent
a087e4904f
commit
4f3a892eeb
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue