diff --git a/src/front/src/views/VoteConstructor.vue b/src/front/src/views/VoteConstructor.vue index 579741764..cb43e203f 100644 --- a/src/front/src/views/VoteConstructor.vue +++ b/src/front/src/views/VoteConstructor.vue @@ -1,7 +1,6 @@ - - diff --git a/src/front/src/views/VoteHomePage.vue b/src/front/src/views/VoteHomePage.vue index c7c7b53e1..e46b5c109 100644 --- a/src/front/src/views/VoteHomePage.vue +++ b/src/front/src/views/VoteHomePage.vue @@ -38,7 +38,10 @@ > Проголосовать - Вы уже проголосовали + Уже проголосовали + + mdi-delete + @@ -62,7 +65,10 @@ - Смотреть результаты + Результаты + + + mdi-delete @@ -184,6 +190,10 @@ export default { selectedVoting.value = null; }; + const deleteVoting = (id) => { + votes.value = votes.value.filter((v) => v.id !== id); + }; + return { currentTab, votes, @@ -199,6 +209,7 @@ export default { submitVote, openResultsModal, closeResultsModal, + deleteVoting, }; }, }; @@ -207,6 +218,5 @@ export default {