Bug 34214: Make 'icon' configurable for Toolbar options

Bug 33417 added a generic 'Toolbar' Vue component but always add a 'plus' icon. We should make it configurable.

Test plan:
Regenerate the Vue app: `yarn js:build`
Go to the ERM module and confirm that the toolbar has the '+' icon.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Alexander Blanchard <alexander.blanchard@ptfs-europe.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2023-07-06 09:19:11 +02:00 committed by Tomas Cohen Arazi
parent 29063caca2
commit f317247776
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
5 changed files with 6 additions and 1 deletions

View file

@ -153,6 +153,7 @@ export default {
toolbar_options: [
{
to: "AgreementsFormAdd",
icon: "plus",
button_title: this.$__("New agreement"),
},
],

View file

@ -101,6 +101,7 @@ export default {
toolbar_options: [
{
to: "EHoldingsLocalPackagesFormAdd",
icon: "plus",
button_title: this.$__("New package"),
},
],

View file

@ -93,10 +93,12 @@ export default {
toolbar_options: [
{
to: "EHoldingsLocalTitlesFormAdd",
icon: "plus",
button_title: this.$__("New title"),
},
{
to: "EHoldingsLocalTitlesFormImport",
icon: "plus",
button_title: this.$__("Import from list"),
},
],

View file

@ -53,6 +53,7 @@ export default {
toolbar_options: [
{
to: "LicensesFormAdd",
icon: "plus",
button_title: this.$__("New license"),
},
],

View file

@ -5,7 +5,7 @@
:key="index"
:to="{ name: option.to }"
class="btn btn-default"
><font-awesome-icon icon="plus" />
><font-awesome-icon :icon="option.icon" />
{{ option.button_title }}</router-link
>
</div>