Jonathan Druart
f317247776
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>
21 lines
464 B
Vue
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>
|