diff options
author | dartcafe <github@dartcafe.de> | 2021-05-29 23:51:26 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2021-05-29 23:51:26 +0300 |
commit | b6fe4a9164026ae3208569c11ba1ceb19d094e63 (patch) | |
tree | 691eb28865fe6db9fc159390adac4d6bbfc19c81 /src/js/components/SideBar | |
parent | cd78947e0b95d7838ca3b56b952355d57be0bc13 (diff) |
remove closing calculation from components
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabConfiguration.vue | 2 | ||||
-rw-r--r-- | src/js/components/SideBar/SideBarTabOptions.vue | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/js/components/SideBar/SideBarTabConfiguration.vue b/src/js/components/SideBar/SideBarTabConfiguration.vue index 6775d787..c09efd44 100644 --- a/src/js/components/SideBar/SideBarTabConfiguration.vue +++ b/src/js/components/SideBar/SideBarTabConfiguration.vue @@ -115,7 +115,7 @@ export default { }), ...mapGetters({ - closed: 'poll/closed', + closed: 'poll/isClosed', participantsVoted: 'poll/participantsVoted', }), }, diff --git a/src/js/components/SideBar/SideBarTabOptions.vue b/src/js/components/SideBar/SideBarTabOptions.vue index dbb4898c..2e40c938 100644 --- a/src/js/components/SideBar/SideBarTabOptions.vue +++ b/src/js/components/SideBar/SideBarTabOptions.vue @@ -27,7 +27,7 @@ <ConfigProposals /> </ConfigBox> - <ConfigBox v-if="pollType === 'datePoll' && countOptions && !pollIsClosed" :title="t('polls', 'Shift all date options')" icon-class="icon-polls-move"> + <ConfigBox v-if="pollType === 'datePoll' && countOptions && !closed" :title="t('polls', 'Shift all date options')" icon-class="icon-polls-move"> <OptionsDateShift /> </ConfigBox> @@ -59,7 +59,7 @@ export default { computed: { ...mapGetters({ - pollIsClosed: 'poll/closed', + closed: 'poll/isClosed', countOptions: 'options/count', pollTypeIcon: 'poll/typeIcon', }), |