Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/handler/ListHandler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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("/", ".")
Expand Down
2 changes: 2 additions & 0 deletions src/stores/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ export const useDBStore = defineStore("db", () => {
"topbar.actions": markRaw([]),
"floatingbar.actions": markRaw([]),

"editor.url": shallowRef({}),

//boneViewer
"bones.view": shallowRef({}),

Expand Down