diff options
| author | scarlett <nia@netbsd.org> | 2018-10-16 14:09:29 +0100 |
|---|---|---|
| committer | scarlett <nia@netbsd.org> | 2018-10-16 14:09:29 +0100 |
| commit | 4cc1ed6171b7fc0e8dc793fbb80e0a63cf83ec40 (patch) | |
| tree | a740845efd742f1a9f1b1a1f0543d996fcb923c2 /src/components/registration/registration.js | |
| parent | 145929207ef9204066b03ab104284168a054b5f0 (diff) | |
| parent | f554edc054fcb6e0508ed5da7dc9edf1a85d2305 (diff) | |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into hide-statistics
Diffstat (limited to 'src/components/registration/registration.js')
| -rw-r--r-- | src/components/registration/registration.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 73840608..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.config.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.config.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: { |
