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){
if(this.#locked) return;
this.lockRender()
const op = derivation ? "derive" : "clone"
this.#boot.secureFetch(this.#serviceurl + "/methods/" + method + "/derive").then(
const derive = derivation ? "?derive=true" : ""
this.#boot.secureFetch(this.#serviceurl + "/methods/" + method + "/clone" + derive).then(
(resp)=>{
if(resp.status === 200){
return resp.json()