Clean up the code
This commit is contained in:
parent
91a72d51ff
commit
f1d1fd64d3
3 changed files with 7 additions and 19 deletions
|
@ -31,10 +31,6 @@ const registration = {
|
|||
if ((!this.registrationOpen && !this.token) || this.signedIn) {
|
||||
this.$router.push('/main/all')
|
||||
}
|
||||
// // Seems like this doesn't work at first page open for some reason
|
||||
// if (this.$store.state.instance.registrationOpen && this.token) {
|
||||
// this.$router.push('/registration')
|
||||
// }
|
||||
},
|
||||
computed: {
|
||||
token () { return this.$route.params.token },
|
||||
|
@ -43,7 +39,7 @@ const registration = {
|
|||
signedIn: (state) => !!state.users.currentUser,
|
||||
isPending: (state) => state.users[SIGN_UP.isPending],
|
||||
serverValidationErrors: (state) => state.users[SIGN_UP.errors],
|
||||
termsofservice: (state) => state.instance.tos
|
||||
termsOfService: (state) => state.instance.tos
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue