Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-08-20 22:46:35 +0300
committerdartcafe <github@dartcafe.de>2022-08-21 02:31:17 +0300
commitf7f238d47f8bed1a337a4027210ded175088d29a (patch)
treec89d73e83f0210d6e71192dfaa4318f158ad1f99 /src/js/views
parent421663d6e14e002f01624d3f32e55539a7312319 (diff)
localisation and refactoring
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Vote.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index 23cb3f0b..fb41933f 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -40,7 +40,7 @@
<div v-if="acl.allowAddOptions && proposalsOpen && !closed" class="area__proposal">
<OptionProposals />
</div>
- <div class="area__confirmation">
+ <div v-if="showConfirmationMail" class="area__confirmation">
<ActionSendConfirmedOptions />
</div>
@@ -135,8 +135,13 @@ export default {
proposalsOpen: 'poll/proposalsOpen',
countHiddenParticipants: 'poll/countHiddenParticipants',
safeTable: 'poll/safeTable',
+ confirmedOptions: 'options/confirmed',
}),
+ showConfirmationMail() {
+ return this.acl.isOwner && this.closed && this.confirmedOptions.length > 0
+ },
+
/* eslint-disable-next-line vue/no-unused-properties */
windowTitle() {
return `${t('polls', 'Polls')} - ${this.poll.title}`