mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Refined and cleaned registration page
This commit is contained in:
parent
2c33373f10
commit
80aa480a03
@ -1,36 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <section class="registration-form">
|
|
||||||
<base-card> -->
|
|
||||||
<!-- <registration-slider
|
|
||||||
v-if="registrationType"
|
|
||||||
:registrationType="registrationType"
|
|
||||||
:overwriteSliderData="overwriteSliderData"
|
|
||||||
/> -->
|
|
||||||
<registration-slider
|
<registration-slider
|
||||||
:registrationType="registrationType"
|
:registrationType="registrationType"
|
||||||
:overwriteSliderData="overwriteSliderData"
|
:overwriteSliderData="overwriteSliderData"
|
||||||
/>
|
/>
|
||||||
<!-- <ds-space v-else centered>
|
|
||||||
<hc-empty icon="events" :message="$t('components.registration.signup.unavailable')" />
|
|
||||||
<nuxt-link to="/login">{{ $t('site.back-to-login') }}</nuxt-link>
|
|
||||||
</ds-space>
|
|
||||||
<template #topMenu>
|
|
||||||
<locale-switch offset="5" />
|
|
||||||
</template>
|
|
||||||
</base-card>
|
|
||||||
</section> -->
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// import HcEmpty from '~/components/Empty/Empty'
|
|
||||||
// import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
|
||||||
import RegistrationSlider from '~/components/Registration/RegistrationSlider'
|
import RegistrationSlider from '~/components/Registration/RegistrationSlider'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Registration',
|
name: 'Registration',
|
||||||
components: {
|
components: {
|
||||||
// HcEmpty,
|
|
||||||
// LocaleSwitch,
|
|
||||||
RegistrationSlider,
|
RegistrationSlider,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -58,10 +38,21 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
registrationType() {
|
registrationType() {
|
||||||
if (this.method && ['invite-code', 'invite-mail'].includes(this.method)) {
|
if (!this.method) {
|
||||||
return this.method
|
return (
|
||||||
|
(this.publicRegistration && 'public-registration') ||
|
||||||
|
(this.inviteRegistration && 'invite-code') ||
|
||||||
|
'no-public-registration'
|
||||||
|
)
|
||||||
|
} else {
|
||||||
|
if (
|
||||||
|
this.method === 'invite-mail' ||
|
||||||
|
(this.method === 'invite-code' && this.inviteRegistration)
|
||||||
|
) {
|
||||||
|
return this.method
|
||||||
|
}
|
||||||
|
return this.publicRegistration ? 'public-registration' : 'no-public-registration'
|
||||||
}
|
}
|
||||||
return this.publicRegistration ? 'public-registration' : 'no-public-registration'
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user