diff options
author | dartcafe <github@dartcafe.de> | 2022-03-27 12:48:57 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-03-27 13:05:45 +0300 |
commit | 48dd058218b0b8652b51a71e0b75f44f270861ea (patch) | |
tree | 191c440053bfe9d4ce7c0a812ab757766534b436 /src/js/components/SideBar | |
parent | 34f5d6614fe7c4f0221cbabe54c76c5ee2485a24 (diff) |
change addDate button
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/components/SideBar')
-rw-r--r-- | src/js/components/SideBar/SideBarTabOptions.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/js/components/SideBar/SideBarTabOptions.vue b/src/js/components/SideBar/SideBarTabOptions.vue index 9782239d..8181e117 100644 --- a/src/js/components/SideBar/SideBarTabOptions.vue +++ b/src/js/components/SideBar/SideBarTabOptions.vue @@ -32,8 +32,9 @@ </ConfigBox> <ConfigBox :title="t('polls', 'Available Options')" :icon-class="pollTypeIcon"> - <template v-if="pollType === 'textPoll'" #actions> - <OptionsTextAddBulk /> + <template #actions> + <OptionsTextAddBulk v-if="pollType === 'textPoll' && !closed" /> + <OptionsDateAdd v-if="pollType === 'datePoll' && !closed" /> </template> <OptionsDate v-if="pollType === 'datePoll'" /> <OptionsText v-if="pollType === 'textPoll'" /> @@ -58,6 +59,7 @@ export default { OptionsDate, OptionsDateShift, OptionsText, + OptionsDateAdd: () => import('../Options/OptionsDateAdd'), OptionsTextAddBulk: () => import('../Options/OptionsTextAddBulk'), }, |