Merge pull request 'ccp-features' (#7) from ccp-features into master
Reviewed-on: #7
This commit is contained in:
commit
26ce0578bf
|
@ -206,7 +206,10 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
}else throw "Error saving process: " + resp.status
|
||||
}).then(data=>{
|
||||
if(!this.#isupdate){
|
||||
this.resetMethod()
|
||||
this.#current = JSON.parse(data)
|
||||
this.#isupdate = true
|
||||
this.#tmp_inputs = Object.keys(this.#current.inputs).map(k=>this.#current.inputs[k])
|
||||
this.#tmp_outputs = Object.keys(this.#current.outputs).map(k=>this.#current.outputs[k])
|
||||
}
|
||||
this.unlockRender()
|
||||
}).catch(err=>{
|
||||
|
@ -233,6 +236,8 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
return null
|
||||
}else throw "Error deleting method: " + resp.status
|
||||
}).then(data=>{
|
||||
this.#isupdate = false
|
||||
this.initMethod()
|
||||
this.unlockRender()
|
||||
}).catch(err=>{
|
||||
alert(err)
|
||||
|
@ -353,7 +358,7 @@ class CCPMethodEditorController extends HTMLElement{
|
|||
this.#rootdoc.querySelector(".plexiglass").classList.toggle("d-none")
|
||||
this.render()
|
||||
this.#locked = false
|
||||
this.parentElement.scrollIntoViewIfNeeded()
|
||||
if(this.parentElement) this.parentElement.scrollIntoViewIfNeeded();
|
||||
}
|
||||
|
||||
render(){
|
||||
|
|
Loading…
Reference in New Issue