diff options
author | dartcafe <github@dartcafe.de> | 2021-01-05 12:38:31 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-01-05 12:38:31 +0300 |
commit | 282affda939839e6dbb37fe84e77518fdef60b3e (patch) | |
tree | 6e4066407a84b40bf08fe374153a9349c57da704 /src/js/components/SideBar/SideBarTabOptions.vue | |
parent | b89cbd7348fc7001830d2407d0acceedc07db38f (diff) |
fix option sidebar
Diffstat (limited to 'src/js/components/SideBar/SideBarTabOptions.vue')
-rw-r--r-- | src/js/components/SideBar/SideBarTabOptions.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/components/SideBar/SideBarTabOptions.vue b/src/js/components/SideBar/SideBarTabOptions.vue index ae37949d..fa14b880 100644 --- a/src/js/components/SideBar/SideBarTabOptions.vue +++ b/src/js/components/SideBar/SideBarTabOptions.vue @@ -24,7 +24,7 @@ <div> <ConfigBox v-if="!isOwner" :title="t('polls', 'As an admin you may edit this poll')" icon-class="icon-checkmark" /> <OptionsDateAdd v-if="pollType === 'datePoll' && !pollIsClosed" /> - <OptionsDateShift v-if="optionsExist && !pollIsClosed" /> + <OptionsDateShift v-if="pollType === 'datePoll' && countOptions && !pollIsClosed" /> <OptionsDate v-if="pollType === 'datePoll'" /> <OptionsTextAdd v-if="pollType === 'textPoll' && !pollIsClosed" /> @@ -56,11 +56,11 @@ export default { computed: { ...mapGetters({ pollIsClosed: 'poll/closed', + countOptions: 'poll/options/count', }), ...mapState({ pollType: state => state.poll.type, isOwner: state => state.poll.acl.isOwner, - optionsExist: state => state.poll.options.length, }), }, |