Skip to content

Commit

Permalink
table: add all on pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadim Ritter committed Jul 30, 2024
1 parent fe5dc2b commit 6605ffa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/utils/table/tableUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@ 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" }
];
}

if (maxLength < 15) {
return [
{ value: 5, title: '5' },
{ value: 10, title: '10' },
{ value: maxLength, title: maxLength.toString() }
{ value: maxLength, title: "All" }
];
}

Expand Down

0 comments on commit 6605ffa

Please sign in to comment.