From 1b911ce05c9f583bc39613e43536aba5f4eea2e7 Mon Sep 17 00:00:00 2001 From: Arne Gudermann Date: Mon, 28 Jul 2025 14:26:41 +0200 Subject: [PATCH] Add Custom editor url --- src/handler/ListHandler.vue | 12 ++++++++++++ src/stores/db.js | 2 ++ 2 files changed, 14 insertions(+) diff --git a/src/handler/ListHandler.vue b/src/handler/ListHandler.vue index e057ebd7..9031a3a9 100644 --- a/src/handler/ListHandler.vue +++ b/src/handler/ListHandler.vue @@ -414,11 +414,23 @@ import Utils from '../utils' if (state.group) { url = `/db/${state.module}/edit/${state.group}/${state.currentSelection[0]["key"]}` } + if (dbStore.state["editor.url"][state.module]) { + const customUrl=dbStore.state["editor.url"][state.module]; + + if (typeof customUrl === "function") { + url = customUrl(url); + } + else { + url = customUrl; + } + + } let route = router.resolve(unref(url)) dbStore.addOpened(route, state.module, state.view, Utils.extractNamefromSkel(state.currentSelection[0])) } function primaryAction(e) { + if (!props.selector && state.conf["handler"].startsWith("list.fluidpage")) { let conf = dbStore.getConf(state.module) let module = conf["handler"].split(".").at(-1).replace("/", ".") diff --git a/src/stores/db.js b/src/stores/db.js index 3e37e3ac..fe30ee53 100644 --- a/src/stores/db.js +++ b/src/stores/db.js @@ -271,6 +271,8 @@ export const useDBStore = defineStore("db", () => { "topbar.actions": markRaw([]), "floatingbar.actions": markRaw([]), + "editor.url": shallowRef({}), + //boneViewer "bones.view": shallowRef({}),