derivation as query-param

This commit is contained in:
dcore94 2023-11-16 13:57:26 +01:00
parent 7f76178458
commit 901abe5869
1 changed files with 2 additions and 2 deletions

View File

@ -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()