Add favorite-button.

This commit is contained in:
Roger Braun 2016-10-30 16:12:35 +01:00
parent b96b5eb327
commit 8630f91a13
7 changed files with 85 additions and 11 deletions

View file

@ -25,7 +25,10 @@ const users = {
.then((response) => {
if (response.ok) {
response.json()
.then((user) => commit('setCurrentUser', user))
.then((user) => {
user.credentials = userCredentials
commit('setCurrentUser', user)
})
.then(() => timelineFetcher.startFetching({store, credentials: userCredentials}))
}
commit('endLogin')