From e424693102c5754e97b57a8f3e6ff5e4b5657eec Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 27 Feb 2025 10:30:56 -0100 Subject: [PATCH] Bug 39320: Add 'home' left menu item to ERM This is a bit hacky, but after hours of fighting with this I wasn't able to come up with a better soltuion. I suspect stores/navigation.js is doing too much and changing too much of the default router-link behaviour but I may be wrong. --- koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js index efb2cb0e23c..d6c4507f041 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/routes/erm.js @@ -23,15 +23,17 @@ import { $__ } from "@koha-vue/i18n"; export const routes = [ { path: "/cgi-bin/koha/erm/erm.pl", + redirect: "/cgi-bin/koha/erm/home", is_default: true, is_base: true, title: $__("E-resource management"), children: [ { - path: "", + path: "/cgi-bin/koha/erm/home", name: "Home", component: markRaw(Home), - is_navigation_item: false, + title: $__("Home"), + icon: "fa fa-home", }, { path: "/cgi-bin/koha/erm/agreements", -- 2.39.5