From d4e0d5c5f5242f5ac541d1ce47316c7d15fa2a4c Mon Sep 17 00:00:00 2001 From: patak Date: Sun, 30 Apr 2023 17:49:33 +0200 Subject: [PATCH] feat: better messages for no favourites and bookmarks (#2031) --- components/common/CommonPaginator.vue | 8 ++++---- components/list/Lists.vue | 2 +- components/timeline/TimelineBookmarks.vue | 2 +- components/timeline/TimelineFavourites.vue | 2 +- components/timeline/TimelinePaginator.vue | 5 +++-- locales/en.json | 2 ++ 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index ee51666db..f945db907 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -11,7 +11,7 @@ const { virtualScroller = false, eventType = 'update', preprocess, - noEndMessage = false, + endMessage = true, } = defineProps<{ paginator: Paginator keyProp?: keyof T @@ -19,7 +19,7 @@ const { stream?: Promise eventType?: 'notification' | 'update' preprocess?: (items: (U | T)[]) => U[] - noEndMessage?: boolean + endMessage?: boolean | string }>() defineSlots<{ @@ -109,9 +109,9 @@ defineExpose({ createEntry, removeEntry, updateEntry }) - +
- {{ t('common.end_of_list') }} + {{ t(typeof endMessage === 'string' ? endMessage : 'common.end_of_list') }}
diff --git a/components/list/Lists.vue b/components/list/Lists.vue index d5d3657fa..c39eed264 100644 --- a/components/list/Lists.vue +++ b/components/list/Lists.vue @@ -30,7 +30,7 @@ async function edit(listId: string) {