diff options
author | dartcafe <github@dartcafe.de> | 2021-04-26 09:53:47 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-04-26 09:53:47 +0300 |
commit | ff4dc705c041586a4ffd29fb590c1bdae56ad2fe (patch) | |
tree | 7a44141a3cf14f147ab15e41f71a7005c4c4eb06 /src/js/components/SideBar | |
parent | 2c1a5acb2573ea9f61d6661d103af71ca0de7274 (diff) |
fix add options in new poll
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabOptions.vue | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/js/components/SideBar/SideBarTabOptions.vue b/src/js/components/SideBar/SideBarTabOptions.vue index 045d2f50..dbb4898c 100644 --- a/src/js/components/SideBar/SideBarTabOptions.vue +++ b/src/js/components/SideBar/SideBarTabOptions.vue @@ -27,38 +27,23 @@ <ConfigProposals /> </ConfigBox> - <!-- <ConfigBox v-if="!pollIsClosed" :title="t('polls', 'Add an option')" icon-class="icon-add"> - <OptionsDateAdd v-if="pollType === 'datePoll'" /> - <OptionsTextAdd v-else-if="pollType === 'textPoll'" /> - </ConfigBox> --> - <ConfigBox v-if="pollType === 'datePoll' && countOptions && !pollIsClosed" :title="t('polls', 'Shift all date options')" icon-class="icon-polls-move"> <OptionsDateShift /> </ConfigBox> - <ConfigBox v-if="countOptions" :title="t('polls', 'Available Options')" :icon-class="pollTypeIcon"> + <ConfigBox :title="t('polls', 'Available Options')" :icon-class="pollTypeIcon"> <OptionsDate v-if="pollType === 'datePoll'" /> <OptionsText v-else-if="pollType === 'textPoll'" /> </ConfigBox> - - <EmptyContent v-else :icon="pollTypeIcon"> - {{ t('polls', 'No vote options') }} - <template #desc> - {{ t('polls', 'Add some!') }} - </template> - </EmptyContent> </div> </template> <script> import { mapGetters, mapState } from 'vuex' -import { EmptyContent } from '@nextcloud/vue' import ConfigBox from '../Base/ConfigBox' import OptionsDate from '../Options/OptionsDate' -// import OptionsDateAdd from '../Options/OptionsDateAdd' import OptionsDateShift from '../Options/OptionsDateShift' import OptionsText from '../Options/OptionsText' -// import OptionsTextAdd from '../Options/OptionsTextAdd' import ConfigProposals from '../Configuration/ConfigProposals' export default { @@ -67,12 +52,9 @@ export default { components: { ConfigBox, ConfigProposals, - EmptyContent, OptionsDate, - // OptionsDateAdd, OptionsDateShift, OptionsText, - // OptionsTextAdd, }, computed: { |