ccp-features #7
|
@ -205,10 +205,13 @@ class CCPMethodEditorController extends HTMLElement{
|
||||||
return resp.text()
|
return resp.text()
|
||||||
}else throw "Error saving process: " + resp.status
|
}else throw "Error saving process: " + resp.status
|
||||||
}).then(data=>{
|
}).then(data=>{
|
||||||
this.unlockRender()
|
|
||||||
if(!this.#isupdate){
|
if(!this.#isupdate){
|
||||||
this.editMethod(this.#current.id)
|
this.#current = 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=>{
|
}).catch(err=>{
|
||||||
alert(err)
|
alert(err)
|
||||||
this.unlockRender()
|
this.unlockRender()
|
||||||
|
@ -353,7 +356,7 @@ class CCPMethodEditorController extends HTMLElement{
|
||||||
this.#rootdoc.querySelector(".plexiglass").classList.toggle("d-none")
|
this.#rootdoc.querySelector(".plexiglass").classList.toggle("d-none")
|
||||||
this.render()
|
this.render()
|
||||||
this.#locked = false
|
this.#locked = false
|
||||||
this.parentElement.scrollIntoViewIfNeeded()
|
if(this.parentElement) this.parentElement.scrollIntoViewIfNeeded();
|
||||||
}
|
}
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
|
|
Loading…
Reference in New Issue