mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
This reverts commit f1e308074bc33e6762431f90f335ed849776f4d9. Let's take this one at a time...
58 lines
1.3 KiB
Vue
58 lines
1.3 KiB
Vue
<template>
|
|
<ds-form v-model="form" :schema="formSchema" @submit="submit">
|
|
<template slot-scope="{ errors }">
|
|
<base-card>
|
|
<h2 class="title">{{ $t('settings.email.name') }}</h2>
|
|
<ds-input
|
|
id="email"
|
|
model="email"
|
|
icon="envelope"
|
|
disabled
|
|
:label="$t('settings.email.labelNewEmail')"
|
|
/>
|
|
<ds-input
|
|
id="nonce"
|
|
model="nonce"
|
|
icon="question-circle"
|
|
:label="$t('settings.email.labelNonce')"
|
|
/>
|
|
<base-button icon="check" :disabled="errors" type="submit" filled>
|
|
{{ $t('actions.save') }}
|
|
</base-button>
|
|
</base-card>
|
|
</template>
|
|
</ds-form>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
formSchema: {
|
|
nonce: { type: 'string', required: true },
|
|
},
|
|
}
|
|
},
|
|
computed: {
|
|
form: {
|
|
get: function() {
|
|
const { email = '', nonce = '' } = this.$route.query
|
|
return { email, nonce }
|
|
},
|
|
set: function(formData) {
|
|
this.formData = formData
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
async submit() {
|
|
const { email, nonce } = this.formData
|
|
this.$router.replace({
|
|
path: 'verify',
|
|
query: { email, nonce },
|
|
})
|
|
},
|
|
},
|
|
}
|
|
</script>
|