Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2020-10-15 19:52:07 +0300
committerdartcafe <github@dartcafe.de>2020-10-15 19:52:07 +0300
commit5aafe38b8b774561d517e6007d71712598c263d2 (patch)
treedf185e2f21bc1821dcafa6088fb37fcff76d7bd9 /src/js/views/PollList.vue
parent1e97d957b84b7a6e048d24d6a0d70ef652f2263e (diff)
use EmptyContent from nextcloud-vue
Diffstat (limited to 'src/js/views/PollList.vue')
-rw-r--r--src/js/views/PollList.vue14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/js/views/PollList.vue b/src/js/views/PollList.vue
index a3140dda..7ff5bd58 100644
--- a/src/js/views/PollList.vue
+++ b/src/js/views/PollList.vue
@@ -32,10 +32,13 @@
</div>
<div class="area__main">
- <div v-if="noPolls" class="emptycontent">
- <div class="icon-polls" />
- <h2> {{ t('polls', 'No existing polls.') }} </h2>
- </div>
+ <EmptyContent v-if="noPolls" icon="icon-polls">
+ {{ t('polls', 'No polls found for this category') }}
+ <template #desc>
+ {{ t('polls', 'Add one or change category!') }}
+ </template>
+ </EmptyContent>
+
<transition-group v-else
name="list"
tag="div"
@@ -54,7 +57,7 @@
</template>
<script>
-import { AppContent } from '@nextcloud/vue'
+import { AppContent, EmptyContent } from '@nextcloud/vue'
import PollItem from '../components/PollList/PollItem'
import { mapGetters } from 'vuex'
import sortBy from 'lodash/sortBy'
@@ -68,6 +71,7 @@ export default {
AppContent,
LoadingOverlay,
PollItem,
+ EmptyContent,
},
data() {