From 8d573797a90de441a719b3867a61bb4500ea0316 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 May 2022 18:29:49 +0200 Subject: [PATCH] Bug 32030: add breadcrumb Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- .../prog/js/vue/components/ERM/Breadcrumb.vue | 26 +++---------- .../prog/js/vue/components/ERM/ERMHome.vue | 38 ------------------- .../intranet-tmpl/prog/js/vue/main-erm.ts | 32 ++++++++++++++-- 3 files changed, 34 insertions(+), 62 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Breadcrumb.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Breadcrumb.vue index 6e1d776d25..f19e16a126 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Breadcrumb.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/Breadcrumb.vue @@ -1,33 +1,19 @@ - + \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMHome.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMHome.vue index d7fdfed4af..d091e87770 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMHome.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/ERMHome.vue @@ -1,54 +1,16 @@ diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts b/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts index 782bf678d4..a38106ca1f 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/main-erm.ts @@ -8,14 +8,38 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; library.add(faPlus, faPencil, faTrash); import App from "./components/ERM/ERMMain.vue"; +import ERMHome from "./components/ERM/ERMHome.vue"; import Agreements from "./components/ERM/Agreements.vue"; const Bar = { template: "
bar
" }; -const Foo = { template: "
foo
" }; const routes = [ - { path: "/cgi-bin/koha/erm/agreements", component: Agreements }, - { path: "/cgi-bin/koha/erm/licenses", component: Bar }, - { path: "/cgi-bin/koha/erm/erm.pl", component: Foo }, + { + path: "/cgi-bin/koha/erm/erm.pl", + component: ERMHome, + meta: { + breadcrumb: [ + { text: "Home", path: "/cgi-bin/koha/mainpage.pl" }, + { + text: "Electronic resources management", + path: "/cgi-bin/koha/erm/erm.pl", + }, + ], + }, + }, + { + path: "/cgi-bin/koha/erm/agreements", + component: Agreements, + meta: { + breadcrumb: [ + { text: "Home", path: "/cgi-bin/koha/mainpage.pl" }, + { + text: "Electronic resources management", + path: "/cgi-bin/koha/erm/erm.pl", + }, + { text: "Agreements", path: "/cgi-bin/koha/erm/agreements" }, + ], + }, + }, ]; const router = createRouter({ history: createWebHistory(), routes }); -- 2.39.5