From 4ab02aa04f7ac744c419f0392f96bbb5edf0cca8 Mon Sep 17 00:00:00 2001 From: Denzel Date: Wed, 15 Jan 2025 16:26:00 +0300 Subject: [PATCH] =?UTF-8?q?P-105=20=D0=9E=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/vote/VoteConstructor.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 0565f6d5d..45e2f0910 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -347,6 +347,14 @@ export default { .padStart(2, "0")}` ); + watch(form.value, () => { + if (!form.value.title || !form.value.description || form.value.questions < 1) { + errorMessage.value = "Все обязательные поля должны быть заполнены"; + } else { + errorMessage.value = ""; + } + }) + watch(selectedTimeStart, () => { updateStartDate() }) @@ -370,7 +378,7 @@ export default { } const returnend = (dates) => { - form.value.endtDate = dates + form.value.endDate = dates } return {