From 533638e16d7d465bc9a627f5925493ce6f6c86d1 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Wed, 26 Apr 2017 18:51:13 +0200 Subject: [PATCH] Back did not work on flat details page sometimes Closes issue #13. --- flatisfy/web/js_src/router/index.js | 1 + flatisfy/web/js_src/views/details.vue | 12 ++---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/flatisfy/web/js_src/router/index.js b/flatisfy/web/js_src/router/index.js index 627a459..00e7246 100644 --- a/flatisfy/web/js_src/router/index.js +++ b/flatisfy/web/js_src/router/index.js @@ -10,6 +10,7 @@ Vue.use(VueRouter) export default new VueRouter({ routes: [ { path: '/', component: Home, name: 'home' }, + { path: '/new', redirect: '/' }, { path: '/followed', component: Status, name: 'followed' }, { path: '/ignored', component: Status, name: 'ignored' }, { path: '/user_deleted', component: Status, name: 'user_deleted' }, diff --git a/flatisfy/web/js_src/views/details.vue b/flatisfy/web/js_src/views/details.vue index c54ad60..16c7710 100644 --- a/flatisfy/web/js_src/views/details.vue +++ b/flatisfy/web/js_src/views/details.vue @@ -3,9 +3,9 @@

- + - + ({{ flat.status ? capitalize(flat.status) : '' }}) {{ flat.title }} [{{ flat.id.split("@")[1] }}]

@@ -211,10 +211,6 @@ export default { this.$store.dispatch('getAllTimeToPlaces') }, - goBack () { - return this.$router.go(-1) - }, - updateFlatStatus (status) { this.$store.dispatch('updateFlatStatus', { flatId: this.$route.params.id, newStatus: status }) }, @@ -253,10 +249,6 @@ nav ul { padding-left: 1em; } -.link { - cursor: pointer; -} - .right-panel li { margin-bottom: 1em; margin-top: 1em;