Registrazione con scelta se Telegram o Email.
(anche da link personale)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { computed, defineComponent, reactive, ref, watch } from 'vue'
|
||||
import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { DefaultProfile, useUserStore } from '@store/UserStore'
|
||||
@@ -10,7 +10,21 @@ import { useGlobalStore } from '@store/globalStore'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CRegistration',
|
||||
emits: ['regEventEmail'],
|
||||
components: { },
|
||||
props: {
|
||||
invited: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
regexpire: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
|
||||
setup(props, { emit }) {
|
||||
const $q = useQuasar()
|
||||
const { t } = useI18n()
|
||||
@@ -36,6 +50,20 @@ export default defineComponent({
|
||||
|
||||
}
|
||||
|
||||
function mounted() {
|
||||
if (props.invited) {
|
||||
start.value = true
|
||||
chooseReg.value = true
|
||||
slide.value = 'second'
|
||||
}
|
||||
}
|
||||
|
||||
function regEventEmail() {
|
||||
emit('regEventEmail', props.invited)
|
||||
}
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
tools,
|
||||
site,
|
||||
@@ -44,6 +72,7 @@ export default defineComponent({
|
||||
start,
|
||||
noInvited,
|
||||
slide,
|
||||
regEventEmail,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user