Bug 33417: Create standard toolbar component
This commit introduces a standard Toolbar component that can be used throughout ERM Test plan: 1) Apply patch 2) Navigate to Agreements and click the "Add agreement" button - this should work as normal 3) Navigate to Licenses and repeat 4) Navigate to Local packages and repeat 5) Navigate to local titles - there should be two buttons, one to add and one to import. These should work as normal Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
78431a983d
commit
09666ecf4e
|
|
@ -0,0 +1,21 @@
|
|||
<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="plus" />
|
||||
{{ $__(`${option.button_title}`) }}</router-link
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
options: Array,
|
||||
},
|
||||
name: "Toolbar",
|
||||
}
|
||||
</script>
|
||||
Loading…
Reference in New Issue