diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 78caae4de..1971abdbd 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -43,6 +43,14 @@
+
Публикация новости: +
Дата и время:
@@ -360,6 +368,7 @@ export default { startDate: new Date(), endDate: new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], + createnews:false }); const rules = { diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js index 15cc0729a..04f187764 100644 --- a/src/front/src/utils/axios-api.js +++ b/src/front/src/utils/axios-api.js @@ -117,7 +117,7 @@ async function createVote(voteData) { }); - + formData.append('createnews', voteData.createnews); formData.append('title', voteData.title); formData.append('description', voteData.description); formData.append('startDate', new Date(voteData.startDate).toISOString());