diff options
author | dartcafe <github@dartcafe.de> | 2022-09-21 23:25:12 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-09-21 23:25:12 +0300 |
commit | 7134eb178c60efe256783ca7e676ca741b75bd56 (patch) | |
tree | 4b8ec6d64ef7e5c30fe398a02d0f693a7afd104a | |
parent | bb1ae6bf2e592b96082dbb8365eb3a4e3e22f8b5 (diff) |
fix NcEmptyContent title
Signed-off-by: dartcafe <github@dartcafe.de>
-rw-r--r-- | src/js/components/Options/OptionsDate.vue | 6 | ||||
-rw-r--r-- | src/js/components/Options/OptionsText.vue | 6 | ||||
-rw-r--r-- | src/js/components/SideBar/SideBarTabActivity.vue | 3 | ||||
-rw-r--r-- | src/js/components/SideBar/SideBarTabComments.vue | 5 | ||||
-rw-r--r-- | src/js/views/Administration.vue | 5 | ||||
-rw-r--r-- | src/js/views/Combo.vue | 5 | ||||
-rw-r--r-- | src/js/views/PollList.vue | 5 | ||||
-rw-r--r-- | src/js/views/Vote.vue | 5 |
8 files changed, 15 insertions, 25 deletions
diff --git a/src/js/components/Options/OptionsDate.vue b/src/js/components/Options/OptionsDate.vue index 292b8a60..6d2c3fbe 100644 --- a/src/js/components/Options/OptionsDate.vue +++ b/src/js/components/Options/OptionsDate.vue @@ -62,16 +62,14 @@ </OptionItem> </transition-group> - <NcEmptyContent v-else> + <NcEmptyContent v-else :title="t('polls', 'No vote options')"> <template #icon> <DatePollIcon /> </template> - <template #desc> + <template #action> {{ t('polls', 'Add some!') }} </template> - - {{ t('polls', 'No vote options') }} </NcEmptyContent> <NcModal v-if="cloneModal" size="small" :can-close="false"> diff --git a/src/js/components/Options/OptionsText.vue b/src/js/components/Options/OptionsText.vue index a990550c..f51442f0 100644 --- a/src/js/components/Options/OptionsText.vue +++ b/src/js/components/Options/OptionsText.vue @@ -58,16 +58,14 @@ </transition-group> </draggable> - <NcEmptyContent v-else> + <NcEmptyContent v-else :title="t('polls', 'No vote options')"> <template #icon> <TextPollIcon /> </template> - <template #desc> + <template #action> {{ t('polls', 'Add some!') }} </template> - - {{ t('polls', 'No vote options') }} </NcEmptyContent> </div> </template> diff --git a/src/js/components/SideBar/SideBarTabActivity.vue b/src/js/components/SideBar/SideBarTabActivity.vue index 436ea922..9c7f8c10 100644 --- a/src/js/components/SideBar/SideBarTabActivity.vue +++ b/src/js/components/SideBar/SideBarTabActivity.vue @@ -23,11 +23,10 @@ <template> <div class="comments"> <Activities v-if="!showEmptyContent" /> - <NcEmptyContent v-else> + <NcEmptyContent v-else :title="t('polls', 'No activity')"> <template #icon> <ActivityIcon /> </template> - {{ t('polls', 'No activity') }} </NcEmptyContent> </div> </template> diff --git a/src/js/components/SideBar/SideBarTabComments.vue b/src/js/components/SideBar/SideBarTabComments.vue index d61a412d..15883056 100644 --- a/src/js/components/SideBar/SideBarTabComments.vue +++ b/src/js/components/SideBar/SideBarTabComments.vue @@ -24,12 +24,11 @@ <div class="comments"> <CommentAdd v-if="acl.allowComment" /> <Comments v-if="!showEmptyContent" /> - <NcEmptyContent v-else> - {{ t('polls', 'No comments') }} + <NcEmptyContent :title="t('polls', 'No comments')"> <template #icon> <CommentsIcon /> </template> - <template #desc> + <template #action> {{ t('polls', 'Be the first.') }} </template> </NcEmptyContent> 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> |