This commit is contained in:
les
2020-07-29 02:18:46 +02:00
parent 2dc6e7adb3
commit 24a99d0eb0
8 changed files with 39 additions and 38 deletions

View File

@@ -8,7 +8,7 @@
v-card-text
p(v-html="$t('register.description')")
v-form(ref='form')
v-form(ref='form' v-model='valid')
v-text-field(ref='email'
v-model='user.email' type='email'
:rules="validators.email"
@@ -23,7 +23,8 @@
:label="$t('common.description')")
v-card-actions
v-btn(@click='register' color='primary') {{$t('common.send')}}
v-spacer
v-btn(@click='register' :disabled='!valid' color='primary') {{$t('common.send')}}
v-icon mdi-chevron-right
</template>
@@ -38,7 +39,8 @@ export default {
return {
validators,
loading: false,
user: {}
user: {},
valid: false
}
},
// https://nuxtjs.org/api/pages-validate/