Created
December 20, 2018 18:42
-
-
Save igeligel/ed1d8718a4aa586035776dc807c7adc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onSubmit(email, password) { | |
this.$store.dispatch(LOGIN, { email, password }).then(() => { | |
this.$store.dispatch(GET_USER_INFORMATION).then(userInf => { | |
this.$store.dispatch(IS_FEATURE_A_ACTIVE, userInf).then(() => { | |
this.$store.dispatch(IS_FEATURE_B_ACTIVE, userInf).then(() => { | |
this.$router.push({ name: "home" }); | |
}); | |
}); | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment