diff options
author | dartcafe <github@dartcafe.de> | 2021-03-20 01:02:02 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-03-22 09:27:07 +0300 |
commit | 1225d1803e8846505a2b1c01f0481da05af1e2d2 (patch) | |
tree | 539ae066711a22ead8e50bd260fd2a2f771f5c0e /src | |
parent | b1c3748cf17e39af4c2ed9480e84c5d5a46b6da5 (diff) |
Add option for participants
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/js/views/Vote.vue | 10 |
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() { |