diff options
Diffstat (limited to 'src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue index 3b94890d0..5c68f80b9 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue @@ -126,6 +126,8 @@ <p> {{ option }} </p> + <PollVotersDetails v-if="details" + :details="details" /> <p class="percentage"> {{ getVotePercentage(index) + '%' }} </p> @@ -166,6 +168,7 @@ import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import PollIcon from 'vue-material-design-icons/Poll.vue' import NcProgressBar from '@nextcloud/vue/dist/Components/NcProgressBar.js' import { PARTICIPANT } from '../../../../../constants.js' +import PollVotersDetails from './PollVotersDetails.vue' export default { @@ -177,6 +180,7 @@ export default { NcButton, PollIcon, NcProgressBar, + PollVotersDetails, }, props: { @@ -272,6 +276,14 @@ export default { return this.status === 1 }, + details() { + if (!this.pollLoaded || this.pollIsOpen) { + return undefined + } else { + return this.poll.details + } + }, + checkboxRadioSwitchType() { if (this.pollLoaded) { return this.poll.maxVotes === 0 ? 'checkbox' : 'radio' |