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:
parent
29063caca2
commit
f317247776
5 changed files with 6 additions and 1 deletions
|
@ -153,6 +153,7 @@ export default {
|
|||
toolbar_options: [
|
||||
{
|
||||
to: "AgreementsFormAdd",
|
||||
icon: "plus",
|
||||
button_title: this.$__("New agreement"),
|
||||
},
|
||||
],
|
||||
|
|
|
@ -101,6 +101,7 @@ export default {
|
|||
toolbar_options: [
|
||||
{
|
||||
to: "EHoldingsLocalPackagesFormAdd",
|
||||
icon: "plus",
|
||||
button_title: this.$__("New package"),
|
||||
},
|
||||
],
|
||||
|
|
|
@ -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"),
|
||||
},
|
||||
],
|
||||
|
|
|
@ -53,6 +53,7 @@ export default {
|
|||
toolbar_options: [
|
||||
{
|
||||
to: "LicensesFormAdd",
|
||||
icon: "plus",
|
||||
button_title: this.$__("New license"),
|
||||
},
|
||||
],
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue