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>2021-03-20 01:02:02 +0300
committerdartcafe <github@dartcafe.de>2021-03-22 09:27:07 +0300
commit1225d1803e8846505a2b1c01f0481da05af1e2d2 (patch)
tree539ae066711a22ead8e50bd260fd2a2f771f5c0e /src/js/views/Vote.vue
parentb1c3748cf17e39af4c2ed9480e84c5d5a46b6da5 (diff)
Add option for participants
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views/Vote.vue')
-rw-r--r--src/js/views/Vote.vue10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index 2a3c9947..f87d4d17 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -48,6 +48,12 @@
<MarkUpDescription />
</div>
+ <div v-if="acl.allowAddOptions && !acl.isOwner">
+ <h3>{{ t('polls', 'This poll is open for proposals') }}</h3>
+ <OptionsDateAdd v-if="poll.type === 'datePoll'" />
+ <OptionsTextAdd v-if="poll.type === 'textPoll'" />
+ </div>
+
<div class="area__main" :class="viewMode">
<VoteTable v-show="options.length" :view-mode="viewMode" />
@@ -92,6 +98,8 @@ import VoteTable from '../components/VoteTable/VoteTable'
import ActionSortOptions from '../components/Actions/ActionSortOptions'
import ActionChangeView from '../components/Actions/ActionChangeView'
import ActionToggleSidebar from '../components/Actions/ActionToggleSidebar'
+import OptionsDateAdd from '../components/Options/OptionsDateAdd'
+import OptionsTextAdd from '../components/Options/OptionsTextAdd'
export default {
name: 'Vote',
@@ -107,6 +115,8 @@ export default {
PollInformation,
PublicRegisterModal,
VoteTable,
+ OptionsDateAdd,
+ OptionsTextAdd,
},
data() {