aboutsummaryrefslogtreecommitdiff
path: root/src/components/registration
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-09-09 21:21:23 +0300
committerHenry Jameson <me@hjkos.com>2018-09-17 17:51:39 +0300
commit82fa5d08c4f441fa9df20edab214b99ecb7776b3 (patch)
tree019ea9955fbe3cd208b65beb7a4abd4339bde23d /src/components/registration
parent2db991fc7fb1eda11b94d585d3b56f9d94c81286 (diff)
more refactoring
Diffstat (limited to 'src/components/registration')
-rw-r--r--src/components/registration/registration.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js
index e53fa4e5..8f59878d 100644
--- a/src/components/registration/registration.js
+++ b/src/components/registration/registration.js
@@ -5,16 +5,16 @@ const registration = {
registering: false
}),
created () {
- if ((!this.$store.state.interface.registrationOpen && !this.token) || !!this.$store.state.users.currentUser) {
+ if ((!this.$store.state.instance.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.interface.registrationOpen && this.token) {
+ if (this.$store.state.instance.registrationOpen && this.token) {
this.$router.push('/registration')
}
},
computed: {
- termsofservice () { return this.$store.state.config.tos },
+ termsofservice () { return this.$store.state.instance.tos },
token () { return this.$route.params.token }
},
methods: {