редактирование компонента результатов голосования

This commit is contained in:
Denzel committed 2025-01-24 08:32:52 +03:00
1 parent f03af6b262
commit 292588c3cc
1 file changed
+2 -2
+2 -2
View File
@@ -108,7 +108,7 @@
<v-tabs-window-item>
<NonVoteSad v-if="nonVoters.length > 0"/>
<v-card-title v-if="nonVoters.length > 0" class="text-red-darken-3">Число сотрудников, которые не проголосовали
{{ nonVoters.length }}:
<strong>{{ nonVoters.length }}</strong>
</v-card-title>
<v-card-item style="max-height: 50vh; overflow-y: auto;">
<NonVoteHappy v-if="nonVoters.length < 1"/>
@@ -201,7 +201,7 @@ export default {
};
const getTopResults = (question) => {
return [...question.answers].sort((a, b) => b.count - a.count).slice(0, 10);
return [...question.answers].sort((a, b) => b.count - a.count);
};
const truncateText = (text, maxLength) => {