diff --git a/src/front/src/components/vote/VoteCard.vue b/src/front/src/components/vote/VoteCard.vue
index b44da5956..789e57e87 100644
--- a/src/front/src/components/vote/VoteCard.vue
+++ b/src/front/src/components/vote/VoteCard.vue
@@ -42,12 +42,15 @@
{{ voteCard.description }}
+
timeChange = time"/>
+
Завершено: {{
new Date(voteCard.dateend).toLocaleDateString()
}}
+
{{ x.text }}
+ Создать новое голосование
+
+
+
@@ -31,11 +35,11 @@
-
+
-
+
@@ -63,16 +67,17 @@ import {useRoute, useRouter} from "vue-router";
import VoteResult from "@/components/vote/VoteResult.vue";
import {deleteVote, getVoteDetail, getVoteResult, getVotes} from "@/utils/axios-api";
import {formatDate} from "@vueuse/shared";
-
+import { useAccountStore } from "@/store/AccountStore";
export default {
methods: {formatDate},
components: {CurrentVote, VoteConstructor, VoteCardVue, VoteResult},
setup() {
+ const accountStore = useAccountStore();
const tabs = [
{value: "active", text: 'Текущие голосования'},
{value: "completed", text: 'Завершенные голосования'},
- {value: "constructor", text: 'Создать новое голосование'},
+
]
const currentTab = ref("active");
@@ -173,6 +178,7 @@ export default {
updating("active");
return {
+ accountStore,
currentTab,
votes,
sortedVotes,