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/Options/OptionsDate.vue | |
parent | cd78947e0b95d7838ca3b56b952355d57be0bc13 (diff) |
remove closing calculation from components
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/Options/OptionsDate.vue')
-rw-r--r-- | src/js/components/Options/OptionsDate.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/js/components/Options/OptionsDate.vue b/src/js/components/Options/OptionsDate.vue index 5e37e347..c6ffc105 100644 --- a/src/js/components/Options/OptionsDate.vue +++ b/src/js/components/Options/OptionsDate.vue @@ -22,7 +22,7 @@ <template> <div> - <OptionsDateAdd v-if="!pollIsClosed" /> + <OptionsDateAdd v-if="!closed" /> <transition-group is="ul" v-if="countOptions"> <OptionItem v-for="(option) in options" :key="option.id" @@ -41,10 +41,10 @@ :title="t('polls', 'Delete option')" @delete="removeOption(option)" /> <Actions v-if="acl.allowEdit" class="action"> - <ActionButton v-if="!pollIsClosed" icon="icon-polls-clone" @click="cloneOptionModal(option)"> + <ActionButton v-if="!closed" icon="icon-polls-clone" @click="cloneOptionModal(option)"> {{ t('polls', 'Clone option') }} </ActionButton> - <ActionButton v-if="pollIsClosed" + <ActionButton v-if="closed" :icon="option.confirmed ? 'icon-polls-confirmed' : 'icon-polls-unconfirmed'" @click="confirmOption(option)"> {{ option.confirmed ? t('polls', 'Unconfirm option') : t('polls', 'Confirm option') }} @@ -121,7 +121,7 @@ export default { }), ...mapGetters({ - pollIsClosed: 'poll/closed', + closed: 'poll/isClosed', countOptions: 'options/count', pollTypeIcon: 'poll/typeIcon', }), |