some recategorization of options...

This commit is contained in:
Henry Jameson 2018-09-09 19:36:13 +03:00
parent f1c16327b6
commit 2db991fc7f
8 changed files with 78 additions and 47 deletions

View file

@ -5,11 +5,11 @@ const registration = {
registering: false
}),
created () {
if ((!this.$store.state.config.registrationOpen && !this.token) || !!this.$store.state.users.currentUser) {
if ((!this.$store.state.interface.registrationOpen && !this.token) || !!this.$store.state.users.currentUser) {
this.$router.push('/main/all')
}
// Seems like this doesn't work at first page open for some reason
if (this.$store.state.config.registrationOpen && this.token) {
if (this.$store.state.interface.registrationOpen && this.token) {
this.$router.push('/registration')
}
},