mirror of
https://github.com/pelican-dev/panel.git
synced 2025-12-08 18:30:15 +01:00
Add pagination to server list (#1955)
This commit is contained in:
parent
0fe8917668
commit
04375439d7
@ -118,7 +118,8 @@ class ListServers extends ListRecords
|
||||
$usingGrid = user()?->getCustomization(CustomizationKey::DashboardLayout) === 'grid';
|
||||
|
||||
return $table
|
||||
->paginated(false)
|
||||
->paginated($usingGrid ? [10, 20, 30, 40] : [10, 20, 50, 100])
|
||||
->defaultPaginationPageOption($usingGrid ? 10 : 20)
|
||||
->query(fn () => $baseQuery)
|
||||
->poll('15s')
|
||||
->columns($usingGrid ? $this->gridColumns() : $this->tableColumns())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user