From eeb05b6e549cc05bc59153d12c6087a14187a9f5 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Jan 2025 14:08:53 +0300 Subject: [PATCH 1/2] P-90 --- src/front/src/components/vote/VoteCard.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/front/src/components/vote/VoteCard.vue b/src/front/src/components/vote/VoteCard.vue index fdb5b9bd9..2e9cfb5dd 100644 --- a/src/front/src/components/vote/VoteCard.vue +++ b/src/front/src/components/vote/VoteCard.vue @@ -25,8 +25,7 @@ prepend-icon="mdi-vote-outline" variant="outlined" rounded="xl" - size="medium" - class="pa-2" + size="small" @click="$emit('openVoteModal', voteCard)"> {{!voteCard.is_passed?"Проголосовать":"Уже проголосовали"}} From 71be58b25f2b8d88141e7b155117640961272ffb Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 16 Jan 2025 16:24:19 +0300 Subject: [PATCH 2/2] P-111 --- src/front/src/components/vote/VoteCard.vue | 75 +++++++++++++++------- 1 file changed, 52 insertions(+), 23 deletions(-) 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 } } }