From 9733a817b2057f1ed5f0c1b462f852e55b9f9e04 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Sponsored-by: UKHSA (UK Health Security Agency) Signed-off-by: Jeremy Evans Signed-off-by: Tomás Cohen Arazi --- 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.51.2