From d2f8444042aa004ef0f168557ea0678f40494c7d Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Sat, 28 Oct 2023 13:24:56 +0200 Subject: [PATCH] Add extension info to router. The idea is for the component to dynamically load the extension, if any, defined in the route's meta attribute. --- lib/www/client/source/src/router/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/www/client/source/src/router/index.js b/lib/www/client/source/src/router/index.js index 7acf5d3..199eae7 100644 --- a/lib/www/client/source/src/router/index.js +++ b/lib/www/client/source/src/router/index.js @@ -16,7 +16,7 @@ import Log from '../views/Log.vue' import QC from '../views/QC.vue' import Graphs from '../views/Graphs.vue' import Map from '../views/Map.vue' - +import DougalAppBarExtensionProject from '../components/app-bar-extension-project' Vue.use(VueRouter) @@ -100,7 +100,10 @@ Vue.use(VueRouter) text: (ctx) => ctx.$store.state.project.projectName || "…", href: (ctx) => `/projects/${ctx.$store.state.project.projectId || ctx.$route.params.project || ""}/` } - ] + ], + appBarExtension: { + component: DougalAppBarExtensionProject + } }, children: [ {