summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/DashboardPage.vue
diff options
context:
space:
mode:
authorUdo Walter2018-08-04 05:45:18 +0200
committerUdo Walter2018-08-04 05:45:18 +0200
commit00d8421e8d7517c58a8aa5906c1273408c37a4fe (patch)
treea1bdcc7f46d4073fe3b7ff300ec6bde44eab1290 /webapp/src/components/DashboardPage.vue
parent[webapp/groups] bugfix + route to create group/client (diff)
downloadbas-00d8421e8d7517c58a8aa5906c1273408c37a4fe.tar.gz
bas-00d8421e8d7517c58a8aa5906c1273408c37a4fe.tar.xz
bas-00d8421e8d7517c58a8aa5906c1273408c37a4fe.zip
[webapp] login now redirect to the requested route
Diffstat (limited to 'webapp/src/components/DashboardPage.vue')
-rw-r--r--webapp/src/components/DashboardPage.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/src/components/DashboardPage.vue b/webapp/src/components/DashboardPage.vue
index d400f9f..d9dfcb6 100644
--- a/webapp/src/components/DashboardPage.vue
+++ b/webapp/src/components/DashboardPage.vue
@@ -191,7 +191,7 @@ export default {
drawerOpen (value) { localStorage.setItem('drawerOpen', value) }
},
methods: {
- ...mapMutations(['shiftSnackbars']),
+ ...mapMutations(['shiftSnackbars', 'setLoginRedirect']),
toggleDrawer () {
if (this.settings.mini && this.desktop) this.drawerMini = !this.drawerMini
else this.drawerOpen = !this.drawerOpen
@@ -222,6 +222,7 @@ export default {
},
logout () {
this.$http.post('/api/logout').then(response => {
+ this.setLoginRedirect(this.$route.fullPath)
this.$router.push('/login')
})
}