Add <v-tooltip/> showing permissions.

Hovering over the user avatar or a project name in the breadcrumbs
shows a tooltip with the relevant permissions.
This commit is contained in:
D. Berge
2025-07-25 13:33:59 +02:00
parent 07d8e97f74
commit 11829555cf
2 changed files with 60 additions and 6 deletions

View File

@@ -118,7 +118,8 @@ Vue.use(VueRouter)
{
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")
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: {