Skip to content

Commit 4f6a9b7

Browse files
author
yaroslav8765
committed
fix: Now it shows number of records, even when number of records less than page window
1 parent 917d897 commit 4f6a9b7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

adminforth/spa/src/components/ResourceListTable.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@
199199
<!-- pagination
200200
totalRows in v-if is used to not hide page input during loading when user puts cursor into it and edit directly (rows gets null there during edit)
201201
-->
202-
<div class="flex flex-row items-center mt-4 xs:flex-row xs:justify-between xs:items-center gap-3"
203-
v-if="(rows || totalRows) && totalRows >= pageSize && totalRows > 0"
204-
>
202+
<div class="flex flex-row items-center mt-4 xs:flex-row xs:justify-between xs:items-center gap-3">
205203

206-
<div class="inline-flex ">
204+
<div class="inline-flex "
205+
v-if="(rows || totalRows) && totalRows >= pageSize && totalRows > 0"
206+
>
207207
<!-- Buttons -->
208208
<button
209209
class="flex items-center py-1 px-3 gap-1 text-sm font-medium text-gray-900 focus:outline-none bg-white border-r-0 rounded-s border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50"

adminforth/spa/src/components/ResourceListTableVirtual.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,11 @@
216216
<!-- pagination
217217
totalRows in v-if is used to not hide page input during loading when user puts cursor into it and edit directly (rows gets null there during edit)
218218
-->
219-
<div class="flex flex-row items-center mt-4 xs:flex-row xs:justify-between xs:items-center gap-3"
220-
v-if="(rows || totalRows) && totalRows >= pageSize && totalRows > 0"
221-
>
219+
<div class="flex flex-row items-center mt-4 xs:flex-row xs:justify-between xs:items-center gap-3">
222220

223-
<div class="inline-flex ">
221+
<div class="inline-flex "
222+
v-if="(rows || totalRows) && totalRows >= pageSize && totalRows > 0"
223+
>
224224
<!-- Buttons -->
225225
<button
226226
class="flex items-center py-1 px-3 gap-1 text-sm font-medium text-gray-900 focus:outline-none bg-white border-r-0 rounded-s border border-gray-300 hover:bg-gray-100 hover:text-lightPrimary focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700 disabled:opacity-50"

0 commit comments

Comments
 (0)