rename validated event

This commit is contained in:
Jörn-Michael Miehe 2019-05-08 22:55:15 +02:00
parent eee3ed96ac
commit 066073fa54
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ export default {
methods: { methods: {
validate() { validate() {
if (this.$refs.form.validate()) { if (this.$refs.form.validate()) {
this.$emit('confirm') this.$emit('validated')
} }
}, },

View file

@ -1,5 +1,5 @@
<template> <template>
<FormDialog ref="main" buttonText="Login" @confirm="doLogin"> <FormDialog ref="main" buttonText="Login" @validated="doLogin">
<v-card-title class="headline"> <v-card-title class="headline">
Log In Log In
</v-card-title> </v-card-title>

View file

@ -1,5 +1,5 @@
<template> <template>
<FormDialog ref="main" buttonText="Register" @confirm="doRegister"> <FormDialog ref="main" buttonText="Register" @validated="doRegister">
<v-card-title class="headline"> <v-card-title class="headline">
Register Register
</v-card-title> </v-card-title>