1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-30 15:58:06 +09:00

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

This commit is contained in:
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

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>