From 1a8e327156cffb3c7e017fcd07d6b17cb02fd83c Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Jul 2023 10:17:20 +0200 Subject: [PATCH] Bug 34215: Introduce a ToolbarButton Vue component Our toolbar component is not flexible enough, we cannot: * have something else than a router-link * have a link outside of the app (it needs to be a Vue route) This patch adds a ToolbarButton component that is used for existing button. But other buttons can be added without being a router-link. Test plan: No change in behaviour here! Test the buttons in the 4 existing toolbar (in the ERM module) Sponsored-by: BULAC - http://www.bulac.fr/ --- .../js/vue/components/ERM/AgreementsList.vue | 18 ++++++------ .../ERM/EHoldingsLocalPackagesList.vue | 18 ++++++------ .../ERM/EHoldingsLocalTitlesList.vue | 28 +++++++++---------- .../js/vue/components/ERM/LicensesList.vue | 11 ++++++-- .../prog/js/vue/components/Toolbar.vue | 12 +------- 5 files changed, 42 insertions(+), 45 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue index 7025ad5b4f8..c7534dc0f6a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue @@ -1,7 +1,13 @@