From 655f64c1936909e07aa901a5d4ebab108d2c2ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Tue, 7 May 2019 22:14:23 +0200 Subject: [PATCH] custom event "confirm" --- frontend/src/components/forms/FormDialog.vue | 4 ++-- frontend/src/components/forms/Login.vue | 4 ++-- frontend/src/components/forms/Register.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/forms/FormDialog.vue b/frontend/src/components/forms/FormDialog.vue index 0fb48ba..490aa9e 100644 --- a/frontend/src/components/forms/FormDialog.vue +++ b/frontend/src/components/forms/FormDialog.vue @@ -22,7 +22,7 @@ {{ buttonText }} - + Cancel @@ -46,7 +46,7 @@ export default { methods: { validate() { if (this.$refs.form.validate()) { - this.$parent.confirm() + this.$emit('confirm') } } }, diff --git a/frontend/src/components/forms/Login.vue b/frontend/src/components/forms/Login.vue index ec9fa24..b046de5 100644 --- a/frontend/src/components/forms/Login.vue +++ b/frontend/src/components/forms/Login.vue @@ -1,5 +1,5 @@