Rename routes to follow the same pattern
This commit is contained in:
@ -259,7 +259,7 @@
|
||||
this.teamService.delete(this.team)
|
||||
.then(() => {
|
||||
this.success({message: 'The team was successfully deleted.'}, this)
|
||||
router.push({name: 'listTeams'})
|
||||
router.push({name: 'teams.index'})
|
||||
})
|
||||
.catch(e => {
|
||||
this.error(e, this)
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="content loader-container" v-bind:class="{ 'is-loading': teamService.loading}">
|
||||
<router-link :to="{name:'newTeam'}" class="button is-success button-right" >
|
||||
<router-link :to="{name:'teams.create'}" class="button is-success button-right" >
|
||||
<span class="icon is-small">
|
||||
<icon icon="plus"/>
|
||||
</span>
|
||||
@ -9,7 +9,7 @@
|
||||
<h1>Teams</h1>
|
||||
<ul class="teams box">
|
||||
<li v-for="t in teams" :key="t.id">
|
||||
<router-link :to="{name: 'editTeam', params: {id: t.id}}">
|
||||
<router-link :to="{name: 'teams.edit', params: {id: t.id}}">
|
||||
{{t.name}}
|
||||
</router-link>
|
||||
</li>
|
||||
|
@ -62,7 +62,7 @@
|
||||
|
||||
this.teamService.create(this.team)
|
||||
.then(response => {
|
||||
router.push({name: 'editTeam', params: {id: response.id}})
|
||||
router.push({name: 'teams.edit', params: {id: response.id}})
|
||||
this.success({message: 'The team was successfully created.'}, this)
|
||||
})
|
||||
.catch(e => {
|
||||
|
Reference in New Issue
Block a user