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 {