diff --git a/src/front/src/components/vote/VoteCard.vue b/src/front/src/components/vote/VoteCard.vue index 9d93c9a2f..b44da5956 100644 --- a/src/front/src/components/vote/VoteCard.vue +++ b/src/front/src/components/vote/VoteCard.vue @@ -11,10 +11,10 @@ {{ voteCard.name }} - - mdi-pencil - + + + + diff --git a/src/front/src/views/VoteHomePage.vue b/src/front/src/views/VoteHomePage.vue index 11fb2a05d..298eab38c 100644 --- a/src/front/src/views/VoteHomePage.vue +++ b/src/front/src/views/VoteHomePage.vue @@ -24,7 +24,6 @@ :isFinished="currentTab==='active'" :voteCard="voting" @deleteVoting="deleteVoting" - @openEditVoteModal="(voting) => openModal('edit', voting)" @openResultModal="(voting) => openModal('results', voting)" @openVoteModal="(voting) => openModal('vote', voting)" /> @@ -53,18 +52,18 @@ - - - Редактировать голосование: {{ selectedVoting?.title }} - - - - - Сохранить - Закрыть - - - + + + + + + + + + + + + @@ -115,7 +114,7 @@ export default { updating("active"); const voteModal = ref(false); - const editVoteModal = ref(false); + // const editVoteModal = ref(false); const resultsModal = ref(false); const selectedVoting = ref(null); @@ -145,7 +144,7 @@ export default { const closeModal = () => { voteModal.value = false; - editVoteModal.value = false; + // editVoteModal.value = false; resultsModal.value = false; selectedVoting.value = null; router.push({name: "VoteHomePage"}); @@ -157,10 +156,12 @@ 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 === "edit") { + // editVoteModal.value = true; + // router.push({name: "EditVote", params: {id: voting.id}}); + // } + else if (type === "results") { await loadVoteResult(voting.id); resultsModal.value = true; router.push({name: "VoteResults", params: {id: voting.id}}); @@ -181,13 +182,13 @@ export default { watch( () => route, async () => { - if (!voteModal.value && !editVoteModal.value && !resultsModal.value) { + if (!voteModal.value && !resultsModal.value) { const voting = votes.value.find((v) => v.id === route.params.id); if (route.name === "Voting") { await loadVoteDetails(route.params.id); voteModal.value = true; } - if (route.name === "EditVote") editVoteModal.value = true; + // if (route.name === "EditVote") editVoteModal.value = true; if (route.name === "VoteResults") { await loadVoteResult(route.params.id) resultsModal.value = true; @@ -205,7 +206,7 @@ export default { votes, sortedVotes, voteModal, - editVoteModal, + // editVoteModal, resultsModal, selectedVoting, openModal,