From 0dfcbc8157f3919655b95b0479db4306620b55af Mon Sep 17 00:00:00 2001 From: scammo Date: Thu, 4 Jan 2024 17:22:37 +0100 Subject: [PATCH] add feature show all users to track --- frontend/src/views/orga/ProposalsTrack.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/orga/ProposalsTrack.vue b/frontend/src/views/orga/ProposalsTrack.vue index ec60414..3984a4f 100644 --- a/frontend/src/views/orga/ProposalsTrack.vue +++ b/frontend/src/views/orga/ProposalsTrack.vue @@ -20,6 +20,7 @@ const loading = ref(false); const proposals = ref([]); const toast = useToast(); const proposalStatus = ref("created"); +const trackUsers = ref([]); onMounted(async () => { await loadPoposals(); @@ -31,7 +32,7 @@ const loadPoposals = async () => { const response = await client.get(`track/proposals?slug=${route.params.slug}`) let data = response.data.proposals - const trackUsers = response.data.users + trackUsers.value = response.data.users data = data.map((proposal) => { return { @@ -55,7 +56,7 @@ const loadPoposals = async () => { (opinion) => opinion.vote !== null ).length; //---------- - const max_vote_count = trackUsers.length + const max_vote_count = trackUsers.value.length let vote_status = 'vote_completed' if (vote_count !== max_vote_count) { if (proposal.opinions.find( @@ -155,5 +156,10 @@ const rowClass = (data) => { +
+

+ Benutzer in diesem Track: +

{{ user.username }}, +