derivation as query-param
This commit is contained in:
parent
7f76178458
commit
901abe5869
|
@ -289,8 +289,8 @@ class CCPMethodEditorController extends HTMLElement{
|
||||||
cloneMethod(method, derivation){
|
cloneMethod(method, derivation){
|
||||||
if(this.#locked) return;
|
if(this.#locked) return;
|
||||||
this.lockRender()
|
this.lockRender()
|
||||||
const op = derivation ? "derive" : "clone"
|
const derive = derivation ? "?derive=true" : ""
|
||||||
this.#boot.secureFetch(this.#serviceurl + "/methods/" + method + "/derive").then(
|
this.#boot.secureFetch(this.#serviceurl + "/methods/" + method + "/clone" + derive).then(
|
||||||
(resp)=>{
|
(resp)=>{
|
||||||
if(resp.status === 200){
|
if(resp.status === 200){
|
||||||
return resp.json()
|
return resp.json()
|
||||||
|
|
Loading…
Reference in New Issue