Removed "All" page length option for log tables, as this easily causes an out of memory situation on the server

You can easily have thousands of log entries, making it impossible to view them all at once.

This fixes #835
This commit is contained in:
Jan Böhmer 2025-02-01 23:42:19 +01:00
parent edd254ee06
commit 3247a97217
3 changed files with 8 additions and 2 deletions

View file

@ -8,7 +8,7 @@ datatables:
# Set options, as documented at https://datatables.net/reference/option/
options:
lengthMenu : [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]]
lengthMenu : [[10, 25, 50, 100], [10, 25, 50, 100]] # We add the "All" option, when part tables are generated
pageLength: '%partdb.table.default_page_size%' # Set to -1 to disable pagination (i.e. show all rows) by default
dom: " <'row' <'col mb-2 input-group flex-nowrap' B l > <'col-auto mb-2' < p >>>
<'card'