diff --git a/src/front/src/views/VoteHomePage.vue b/src/front/src/views/VoteHomePage.vue
index 7d4ce1cf8..59c11e429 100644
--- a/src/front/src/views/VoteHomePage.vue
+++ b/src/front/src/views/VoteHomePage.vue
@@ -8,10 +8,10 @@
{{ x.text }}
-
-
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -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,10 +119,11 @@ export default {
const closeModal = () => {
voteModal.value = false;
- // editVoteModal.value = false;
resultsModal.value = false;
selectedVoting.value = null;
router.push({name: "VoteHomePage"});
+ if (route.name === "Voting") updating('active')
+ if (route.name === "VoteResults") updating('completed')
};
const openModal = async (type, voting) => {
@@ -145,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}});
@@ -195,7 +177,6 @@ export default {
votes,
sortedVotes,
voteModal,
- // editVoteModal,
resultsModal,
selectedVoting,
openModal,