Skip to content

Commit

Permalink
👌 : use named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit authored and cdubuisson committed Apr 9, 2020
1 parent 7c621c1 commit 91e5a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/client/app/pages/modules/modules.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div>
<b-button
:to="'/modules/import'"
:to="{ name: 'module_import' }"
title="Import Module"
variant="success"
class="mb-4"
Expand Down Expand Up @@ -32,7 +32,7 @@
</b-card-text>

<b-button
:to="'/modules/'+module.id"
:to="{ name: 'module', params: { moduleId: module.id }}"
title="Edit this module"
variant="primary"
class="mr-1"
Expand All @@ -41,7 +41,7 @@
</b-button>

<b-button
:to="'/modules/'+module.id+'/description'"
:to="{ name: 'module_description', params: { moduleId: module.id }}"
title="Detail of this module"
variant="primary"
class="mr-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
const result = this.isRepositoryNotEmpty && this.isRepositoryValid && this.isTagNotEmpty;
// emit form status to parent
this.$emit('form-status', result);
this.$emit('input', this.image);
return result;
},
isRepositoryNotEmpty() {
Expand Down

0 comments on commit 91e5a48

Please sign in to comment.