feat [P-01]: news true

This commit is contained in:
Denis Voinovich committed 2025-06-02 15:48:24 +03:00
1 parent d5fa806b43
commit 1e09f10b8d
3 files changed
+6 -6

No files matched your search

@@ -20,12 +20,12 @@
<div v-if="!isTest" class="pt-2 d-flex align-center">
<span class="text-overline text-grey text-center">Публикация новости: </span>
<v-switch
v-model="localForm.createnews"
v-model="localForm.news"
class="px-2"
density="comfortable"
hide-details
color="primary"
:label="localForm.createnews ? 'да' : 'нет'"
:label="localForm.news ? 'да' : 'нет'"
></v-switch>
</div>
<div v-if="!isTest" class="text-overline text-grey">Дата и время:</div>
@@ -107,7 +107,7 @@ export default {
: {
title: '',
description: '',
createnews: false,
news: false,
appoint: false,
startDate: new Date(),
endDate: new Date(),
@@ -335,7 +335,7 @@ export default {
startDate: props.isTest ? null : new Date(),
endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)),
questions: [],
createnews: false,
news: false,
appoint: false
});
@@ -570,7 +570,7 @@ export default {
startDate: props.isTest ? null : new Date(),
endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)),
questions: [],
createnews: false,
news: false,
appoint: false
};
testSettings.value = {
+1 -1
View File
@@ -120,7 +120,7 @@ async function createVote(voteData) {
});
formData.append('createnews', voteData.createnews);
formData.append('news', voteData.news);
formData.append('title', voteData.title);
formData.append('description', voteData.description);
formData.append('startDate', new Date(voteData.startDate).toISOString());