From ecd8ad1c9bd6b758dfbf6cf39cd5c3d111f50fa4 Mon Sep 17 00:00:00 2001 From: Denzel Date: Wed, 22 Jan 2025 15:32:18 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/views/VoteHomePage.vue | 31 +++++----------------------- 1 file changed, 5 insertions(+), 26 deletions(-) diff --git a/src/front/src/views/VoteHomePage.vue b/src/front/src/views/VoteHomePage.vue index c280ac689..7f814afd1 100644 --- a/src/front/src/views/VoteHomePage.vue +++ b/src/front/src/views/VoteHomePage.vue @@ -8,10 +8,10 @@ {{ x.text }} - - + + - + - + @@ -41,19 +41,6 @@ - - - - - - - - - - - - - @@ -103,7 +90,6 @@ export default { updating("active"); const voteModal = ref(false); - // const editVoteModal = ref(false); const resultsModal = ref(false); const selectedVoting = ref(null); @@ -133,7 +119,6 @@ export default { const closeModal = () => { voteModal.value = false; - // editVoteModal.value = false; resultsModal.value = false; selectedVoting.value = null; router.push({name: "VoteHomePage"}); @@ -147,12 +132,7 @@ export default { await loadVoteDetails(voting.id); voteModal.value = true; router.push({name: "Voting", params: {id: voting.id}}); - } - // else if (type === "edit") { - // editVoteModal.value = true; - // router.push({name: "EditVote", params: {id: voting.id}}); - // } - else if (type === "results") { + } else if (type === "results") { await loadVoteResult(voting.id); resultsModal.value = true; router.push({name: "VoteResults", params: {id: voting.id}}); @@ -197,7 +177,6 @@ export default { votes, sortedVotes, voteModal, - // editVoteModal, resultsModal, selectedVoting, openModal,