Ensure poll.voters_count doesn't fallback to poll.votes when it's 0
This commit is contained in:
parent
13ff99881b
commit
01275fbac0
@ -58,7 +58,7 @@
|
|||||||
{{ $t('polls.vote') }}
|
{{ $t('polls.vote') }}
|
||||||
</button>
|
</button>
|
||||||
<div class="total">
|
<div class="total">
|
||||||
<template v-if="poll.voters_count">
|
<template v-if="typeof poll.voters_count === 'number'">
|
||||||
{{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }} ·
|
{{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }} ·
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
|
@ -147,6 +147,7 @@
|
|||||||
"add_poll": "Add Poll",
|
"add_poll": "Add Poll",
|
||||||
"add_option": "Add Option",
|
"add_option": "Add Option",
|
||||||
"option": "Option",
|
"option": "Option",
|
||||||
|
"votes": "votes",
|
||||||
"people_voted_count": "{count} person voted | {count} people voted",
|
"people_voted_count": "{count} person voted | {count} people voted",
|
||||||
"votes_count": "{count} vote | {count} votes",
|
"votes_count": "{count} vote | {count} votes",
|
||||||
"vote": "Vote",
|
"vote": "Vote",
|
||||||
|
Loading…
Reference in New Issue
Block a user