diff options
| author | Henry <spam@hjkos.com> | 2018-09-21 09:19:02 +0000 |
|---|---|---|
| committer | Henry <spam@hjkos.com> | 2018-09-21 09:19:02 +0000 |
| commit | cd48268c858f4a7f24767e41e81cb6524393c5e6 (patch) | |
| tree | 64020b07266815f88990274c5ad5ee134f04d5f1 /src/components/registration/registration.js | |
| parent | 6f32ccf41717c2b59404c04ab0b0cb4b8c8171e3 (diff) | |
| parent | 1c2f0029e4835a34a94aba2aac7eeff592aa0d95 (diff) | |
Merge branch 'betterStorage' into 'develop'
Better storage
See merge request pleroma/pleroma-fe!343
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: { |
