@@ -8,18 +8,15 @@ import { nextTick, useTemplateRef } from 'vue'
88import { useSortable } from ' @vueuse/integrations/useSortable'
99
1010import { t } from ' @nextcloud/l10n'
11- import NcEmptyContent from ' @nextcloud/vue/components/NcEmptyContent'
1211import NcActions from ' @nextcloud/vue/components/NcActions'
1312import NcActionButton from ' @nextcloud/vue/components/NcActionButton'
1413
1514import DeleteIcon from ' vue-material-design-icons/TrashCanOutline.vue'
1615import RestoreIcon from ' vue-material-design-icons/RecycleVariant.vue'
17- import TextPollIcon from ' vue-material-design-icons/FormatListBulletedSquare.vue'
1816import ConfirmIcon from ' vue-material-design-icons/CheckboxBlankOutline.vue'
1917import UnconfirmIcon from ' vue-material-design-icons/CheckboxMarkedOutline.vue'
2018
2119import OptionItem from ' ./OptionItem.vue'
22- import OptionsTextAdd from ' ./OptionsTextAdd.vue'
2320import { usePollStore } from ' ../../stores/poll'
2421import { useOptionsStore } from ' ../../stores/options'
2522
@@ -60,8 +57,7 @@ function onSort(event: { oldIndex: number; newIndex: number }) {
6057 </script >
6158
6259<template >
63- <OptionsTextAdd v-if =" ! pollStore .isClosed " />
64- <div v-if =" optionsStore.options.length" ref =" list" :style =" cssVar" >
60+ <div ref =" list" :style =" cssVar" >
6561 <div
6662 v-for =" option in optionsStore.options"
6763 :key =" option.id"
@@ -115,15 +111,6 @@ function onSort(event: { oldIndex: number; newIndex: number }) {
115111 </OptionItem >
116112 </div >
117113 </div >
118-
119- <NcEmptyContent
120- v-else
121- :name =" t (' polls' , ' No vote options' )"
122- :description =" t (' polls' , ' Add some!' )" >
123- <template #icon >
124- <TextPollIcon />
125- </template >
126- </NcEmptyContent >
127114</template >
128115
129116<style lang="scss">
0 commit comments