Koha/koha-tmpl/intranet-tmpl/prog/js/vue/components/Toolbar.vue
Jonathan Druart c77bea6072
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>
(cherry picked from commit f317247776)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2023-07-18 10:24:18 +01:00

21 lines
464 B
Vue

<template>
<div id="toolbar" class="btn-toolbar">
<router-link
v-for="(option, index) in options"
:key="index"
:to="{ name: option.to }"
class="btn btn-default"
><font-awesome-icon :icon="option.icon" />
{{ option.button_title }}</router-link
>
</div>
</template>
<script>
export default {
props: {
options: Array,
},
name: "Toolbar",
}
</script>