From 6605ffa313688fbe3a280fbe98b53a6b2448d09b Mon Sep 17 00:00:00 2001 From: Nadim Ritter Date: Tue, 30 Jul 2024 17:19:06 +0200 Subject: [PATCH] table: add all on pagination --- client/src/utils/table/tableUtils.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/utils/table/tableUtils.ts b/client/src/utils/table/tableUtils.ts index 9e88ee4..04c271f 100644 --- a/client/src/utils/table/tableUtils.ts +++ b/client/src/utils/table/tableUtils.ts @@ -36,14 +36,14 @@ export function calcItemsPerPage(itemList: any): { value: number, title: string if (maxLength < 5) { return [ - { value: maxLength, title: maxLength.toString() } + { value: maxLength, title: "All" } ]; } if (maxLength < 10) { return [ { value: 5, title: '5' }, - { value: maxLength, title: maxLength.toString() } + { value: maxLength, title: "All" } ]; } @@ -51,7 +51,7 @@ export function calcItemsPerPage(itemList: any): { value: number, title: string return [ { value: 5, title: '5' }, { value: 10, title: '10' }, - { value: maxLength, title: maxLength.toString() } + { value: maxLength, title: "All" } ]; }