Skip to content

Commit

Permalink
Change to use $router.back() instead of custom method boBack()"
Browse files Browse the repository at this point in the history
  • Loading branch information
inaki committed Mar 5, 2024
1 parent 937267a commit 14938a9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/client/src/views/GrantDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<section>
<div class="container-fluid">
<div class="grant-details-back-link" v-if="showBackLink">
<a @click="goBack" class="back-link">Back</a>
<a @click="$router.back()">Back</a>
</div>
<div class="grant-details-back-link" v-else>
<router-link to="/grants">Browse Grants</router-link>
Expand Down Expand Up @@ -445,9 +445,6 @@ export default {
selectableOption(option) {
return option.status_code !== HEADER;
},
goBack() {
this.$router.go(-1);
},
},
};
</script>
Expand All @@ -459,9 +456,6 @@ export default {
padding-right: 80px;
padding-left: 80px;
padding-top: 80px;
margin-right: auto;
margin-left: auto;
box-sizing: border-box;
}
.grant-details-container {
padding-right: 80px;
Expand Down

0 comments on commit 14938a9

Please sign in to comment.