Koha/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/EHoldingsLocalTitlesToolbar.vue
Matt Blenkinsop a53351b4a0
Bug 32932: Update router to use object references - agreements
This patch updates the Vue files for ERM to use router object links rather than urls - this will make it much simpler to maintain the router if urls need to be updated. This first patch only updates the files in the agreements section of ERM as a first step to introduce the topic for discussion.

Test plan:
1) Apply patch
2) Navigate to the Agreements section of ERM and click on different navigation links/buttons
3) The links/buttons should all work as normal
4) Review the code to see that the component files now refer back to the router using objects rather than url strings

Signed-off-by: Agustin Moyano <agustinmoyano@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-06-09 12:04:55 -03:00

23 lines
621 B
Vue

<template>
<div id="toolbar" class="btn-toolbar">
<router-link
:to="{ name: 'EHoldingsLocalTitlesFormAdd' }"
class="btn btn-default"
><font-awesome-icon icon="plus" />
{{ $__("New title") }}</router-link
>
&nbsp;
<router-link
:to="{ name: 'EHoldingsLocalTitlesFormImport' }"
class="btn btn-default"
><font-awesome-icon icon="plus" />
{{ $__("Import from list") }}</router-link
>
</div>
</template>
<script>
export default {
name: "EHoldingsLocalTitleToolbar",
}
</script>