Skip to content

Commit e071149

Browse files
author
yaroslav8765
committed
fix: add correct wrong message appearance
1 parent 928bac6 commit e071149

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@
253253

254254
<!-- Help text -->
255255
<span class="text-sm text-gray-700 dark:text-gray-400">
256-
<template v-if="resource && totalRows > 0">
256+
<span v-if="((((page || 1) - 1) * pageSize + 1 > totalRows) && totalRows > 0)">{{ $t('Wrong Page') }} </span>
257+
<template v-else-if="resource && totalRows > 0">
257258

258259
<span class="af-pagination-info hidden sm:inline">
259260
<i18n-t keypath="Showing {from} to {to} of {total} Entries" tag="p" >

adminforth/spa/src/components/ResourceListTableVirtual.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@
271271

272272
<!-- Help text -->
273273
<span class="text-sm text-gray-700 dark:text-gray-400">
274-
<template v-if="resource && totalRows > 0">
274+
<span v-if="((((page || 1) - 1) * pageSize + 1 > totalRows) && totalRows > 0)">{{ $t('Wrong Page') }} </span>
275+
<template v-else-if="resource && totalRows > 0">
275276

276277
<span class="hidden sm:inline">
277278
<i18n-t keypath="Showing {from} to {to} of {total} Entries" tag="p" >

0 commit comments

Comments
 (0)