]> git.koha-community.org Git - koha.git/commit
Bug 34215: Introduce a ToolbarButton Vue component
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 6 Jul 2023 08:17:20 +0000 (10:17 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 22 Sep 2023 14:35:48 +0000 (11:35 -0300)
commit60f0aee9b6d3c9e1312521d6e40b76b38006d2e0
tree0d929a46013a29ec2ab916d8c880ecc54b20a667
parent3da3e6e8ff2b8a87a5709f67cdaf8097fab339f5
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/
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementsList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalPackagesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/LicensesList.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue
koha-tmpl/intranet-tmpl/prog/js/vue/components/ToolbarButton.vue [new file with mode: 0644]