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>2022-09-21 23:25:12 +0300
committerdartcafe <github@dartcafe.de>2022-09-21 23:25:12 +0300
commit7134eb178c60efe256783ca7e676ca741b75bd56 (patch)
tree4b8ec6d64ef7e5c30fe398a02d0f693a7afd104a /src/js/views
parentbb1ae6bf2e592b96082dbb8365eb3a4e3e22f8b5 (diff)
fix NcEmptyContent title
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/views')
-rw-r--r--src/js/views/Administration.vue5
-rw-r--r--src/js/views/Combo.vue5
-rw-r--r--src/js/views/PollList.vue5
-rw-r--r--src/js/views/Vote.vue5
4 files changed, 8 insertions, 12 deletions
diff --git a/src/js/views/Administration.vue b/src/js/views/Administration.vue
index 1e439ab1..4aba9e9e 100644
--- a/src/js/views/Administration.vue
+++ b/src/js/views/Administration.vue
@@ -30,14 +30,13 @@
</HeaderBar>
<div class="area__main">
- <NcEmptyContent v-if="noPolls">
+ <NcEmptyContent v-if="noPolls" :title="t('polls', 'No polls found for this category')">
<template #icon>
<PollsAppIcon />
</template>
- <template #desc>
+ <template #action>
{{ t('polls', 'Add one or change category!') }}
</template>
- {{ t('polls', 'No polls found for this category') }}
</NcEmptyContent>
<transition-group v-else
diff --git a/src/js/views/Combo.vue b/src/js/views/Combo.vue
index b936f289..d68de264 100644
--- a/src/js/views/Combo.vue
+++ b/src/js/views/Combo.vue
@@ -37,14 +37,13 @@
<div class="area__main">
<ComboTable v-show="polls.length" />
- <NcEmptyContent v-if="!polls.length">
+ <NcEmptyContent v-if="!polls.length" :title="t('polls', 'No polls selected')">
<template #icon>
<PollsAppIcon />
</template>
- <template #desc>
+ <template #action>
{{ t('polls', 'Select polls by clicking on them in the right sidebar!') }}
</template>
- {{ t('polls', 'No polls selected') }}
</NcEmptyContent>
</div>
diff --git a/src/js/views/PollList.vue b/src/js/views/PollList.vue
index ed88de94..d2abbbb7 100644
--- a/src/js/views/PollList.vue
+++ b/src/js/views/PollList.vue
@@ -30,14 +30,13 @@
</HeaderBar>
<div class="area__main">
- <NcEmptyContent v-if="noPolls">
+ <NcEmptyContent v-if="noPolls" :title="t('polls', 'No polls found for this category')">
<template #icon>
<PollsAppIcon />
</template>
- <template #desc>
+ <template #action>
{{ t('polls', 'Add one or change category!') }}
</template>
- {{ t('polls', 'No polls found for this category') }}
</NcEmptyContent>
<transition-group v-else
diff --git a/src/js/views/Vote.vue b/src/js/views/Vote.vue
index ec4ef045..b4685272 100644
--- a/src/js/views/Vote.vue
+++ b/src/js/views/Vote.vue
@@ -47,13 +47,12 @@
<div class="area__main" :class="viewMode">
<VoteTable v-show="options.length" :view-mode="viewMode" />
- <NcEmptyContent v-if="!options.length">
+ <NcEmptyContent v-if="!options.length" :title="t('polls', 'No vote options available')">
<template #icon>
<TextPollIcon v-if="poll.type === 'textPoll'" />
<DatePollIcon v-else />
</template>
- {{ t('polls', 'No vote options available') }}
- <template #desc>
+ <template #action>
<button v-if="acl.allowEdit" @click="openOptions">
{{ t('polls', 'Add some!') }}
</button>