Matt Blenkinsop
a53351b4a0
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>
23 lines
621 B
Vue
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
|
|
>
|
|
|
|
<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>
|