diff --git a/src/front/src/components/vote/VoteCard.vue b/src/front/src/components/vote/VoteCard.vue index 2e9cfb5dd..7e735269d 100644 --- a/src/front/src/components/vote/VoteCard.vue +++ b/src/front/src/components/vote/VoteCard.vue @@ -6,31 +6,58 @@ - - - - - - - + + + + + + + {{ voteCard.description }} - + - - {{!voteCard.is_passed?"Проголосовать":"Уже проголосовали"}} + + {{ !voteCard.is_passed ? "Проголосовать" : "Уже проголосовали" }} - + mdi-delete + + + + +
+ Вы действительно хотите удалить голосование? +
+ +
+
@@ -60,10 +87,12 @@ export default { }, setup(props) { const timeChange = ref(false) - const images = computed(()=>{ - return props.voteCard.files.length>0? props.voteCard.files:['/media/defaultimg/vote.png'] + const youSure = ref(false) + + const images = computed(() => { + return props.voteCard.files.length > 0 ? props.voteCard.files : ['/media/defaultimg/vote.png'] }) - return { timeChange, baseURL ,images} + return { timeChange, baseURL, images, youSure } } }