minor fixes

This commit is contained in:
dcore94 2022-07-21 12:35:07 +02:00
parent 192327a7aa
commit cdae1583f1
1 changed files with 4 additions and 3 deletions

View File

@ -199,7 +199,7 @@ class CCPMethodEditorController extends HTMLElement{
this.render()
}).catch(err=>{
alert(err)
})
})
}
saveMethod(){
@ -245,7 +245,7 @@ class CCPMethodEditorController extends HTMLElement{
(resp)=>{
if(resp.status === 404 || resp.status === 204){
return null
}else throw "Error deleting method"
}else throw "Error deleting method: " + resp.status
}).then(data=>{
this.unlockRender()
}).catch(err=>{
@ -259,13 +259,14 @@ class CCPMethodEditorController extends HTMLElement{
initMethod(){
this.#current = JSON.parse(JSON.stringify(this.#method_template))
this.#current.id = Math.abs((Math.random() * 10e11)|0)
this.#current.metadata = []
this.#tmp_inputs = []
this.#tmp_outputs = []
}
resetMethod(){
this.initMethod()
this.render()
this.render()
}
cloneMethod(method){