Expand groups router definition

This commit is contained in:
D. Berge
2025-08-20 12:04:26 +02:00
parent 196e772004
commit 2446b42785

View File

@@ -212,7 +212,7 @@ Vue.use(VueRouter)
component: GroupList,
meta: {
breadcrumbs: [
{ text: "Groups", href: "/groups", disabled: true }
{ text: "Comparisons", href: "/groups", disabled: true }
],
appBarExtension: {
// component: DougalAppBarExtensionProjectList
@@ -231,8 +231,22 @@ Vue.use(VueRouter)
component: Group,
meta: {
breadcrumbs: [
{ text: "Groups", href: "/groups" },
{ text: "Comparisons", href: "/groups" },
{ text: (ctx) => ctx.$route.params.group }
/*
{
text: (ctx) => ctx.$store.state.project.projectName || "…",
href: (ctx) => `/projects/${ctx.$store.state.project.projectId || ctx.$route.params.project || ""}/`,
title: (ctx) => Object.entries(ctx.$store.getters.projectConfiguration?.organisations ?? {}).map( ([org, ops]) => `* ${org}: ${Object.entries(ops).filter( ([k, v]) => v ).map( ([k, v]) => k ).join(", ")}`).join("\n"),
organisations: (ctx) => ctx.$store.getters.projectConfiguration?.organisations ?? {}
}
*/
],
/*
appBarExtension: {
component: DougalAppBarExtensionGroup
}
*/
},
children: [
]