fix: #2439 - `endMessage` in CommonPaginator (#2441)

zio/stable
Tom Doe 2023-10-24 15:01:57 +02:00 committed by GitHub
parent 0924c9d9be
commit 5d09e7d2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ defineExpose({ createEntry, removeEntry, updateEntry })
</slot>
<slot v-else-if="state === 'done' && endMessage !== false" name="done" :items="items as U[]">
<div p5 text-secondary italic text-center>
{{ t(typeof endMessage === 'string' ? endMessage : 'common.end_of_list') }}
{{ t(typeof endMessage === 'string' && items.length <= 0 ? endMessage : 'common.end_of_list') }}
</div>
</slot>
<div v-else-if="state === 'error'" p5 text-secondary>