aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-10-30 14:25:18 +0100
committerRoger Braun <roger@rogerbraun.net>2016-10-30 14:25:18 +0100
commita7ce51b4b0d4ef61a28c0787f6ddf4dbb3c6f289 (patch)
tree78cd689fb3ea76b1c95d2eb7212946440d8aa056 /src/components
parent500b704c0f93059b75b8943e3351cdac63270b0f (diff)
Go to friends timeline on login.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/login_form/login_form.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/login_form/login_form.js b/src/components/login_form/login_form.js
index 827c704c..b55f770f 100644
--- a/src/components/login_form/login_form.js
+++ b/src/components/login_form/login_form.js
@@ -7,7 +7,9 @@ const LoginForm = {
},
methods: {
submit () {
- this.$store.dispatch('loginUser', this.user)
+ this.$store.dispatch('loginUser', this.user).then(() => {
+ this.$router.push('/main/friends')
+ })
}
}
}