Refactor router

This commit is contained in:
Chocobozzz
2019-02-22 14:55:47 +01:00
committed by Thomas Citharel
parent d73f738b1b
commit 53cb39350a
19 changed files with 316 additions and 288 deletions

View File

@@ -69,6 +69,7 @@
import { FETCH_PERSON, LOGGED_PERSON } from "@/graphql/actor";
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
import EventCard from "@/components/Event/EventCard.vue";
import { RouteName } from '@/router'
@Component({
apollo: {
@@ -101,7 +102,7 @@ export default class Profile extends Vue {
logoutUser() {
// TODO : implement logout
this.$router.push({ name: "Home" });
this.$router.push({ name: RouteName.HOME });
}
nl2br(text) {