diff --git a/src/front/src/components/vote/VoteAdmin.vue b/src/front/src/components/vote/VoteAdmin.vue new file mode 100644 index 000000000..19d75da1a --- /dev/null +++ b/src/front/src/components/vote/VoteAdmin.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/src/front/src/components/vote/VoteForm.vue b/src/front/src/components/vote/VoteForm.vue index 796cc1fa8..2b1ee8bc3 100644 --- a/src/front/src/components/vote/VoteForm.vue +++ b/src/front/src/components/vote/VoteForm.vue @@ -31,7 +31,6 @@ - diff --git a/src/front/src/views/Vote.vue b/src/front/src/views/Vote.vue index 9ce407907..4a058adc6 100644 --- a/src/front/src/views/Vote.vue +++ b/src/front/src/views/Vote.vue @@ -58,6 +58,10 @@ + + ИНФОРМАЦИЯ О ХОДЕ
+ ГОЛОСОВАНИЯ
+
@@ -109,6 +113,9 @@ import VoteForm from '@/components/vote/VoteForm.vue'; import PercBst from '@/components/vote/PercBst.vue'; import PercThn from '@/components/vote/PercThn.vue'; import CountDown from '@/components/CountDown.vue'; +import { useAccountStore } from '@/store/AccountStore'; +let admin_panel = ref(false); +let account_login = useAccountStore().user.login; export default { @@ -133,11 +140,18 @@ export default { isFlipped2.value = !isFlipped2.value; } + if (account_login == '9966-00-011') { + admin_panel = true; + console.log(admin_panel); + } + return { isFlipped1, toggleFlip1, isFlipped2, toggleFlip2, + account_login, + admin_panel, }; }, };