mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-20 16:51:10 +00:00
Fixes channel table not pulling from local storage for page size.
This commit is contained in:
parent
fc9b179e9a
commit
2df377b7f5
2 changed files with 3 additions and 3 deletions
|
|
@ -69,7 +69,7 @@ class OrInFilter(django_filters.Filter):
|
|||
|
||||
|
||||
class StreamPagination(PageNumberPagination):
|
||||
page_size = 25 # Default page size
|
||||
page_size = 50 # Default page size to match frontend default
|
||||
page_size_query_param = "page_size" # Allow clients to specify page size
|
||||
max_page_size = 10000 # Prevent excessive page sizes
|
||||
|
||||
|
|
@ -279,7 +279,7 @@ class ChannelGroupViewSet(viewsets.ModelViewSet):
|
|||
# 3) Channel Management (CRUD)
|
||||
# ─────────────────────────────────────────────────────────
|
||||
class ChannelPagination(PageNumberPagination):
|
||||
page_size = 25 # Default page size
|
||||
page_size = 50 # Default page size to match frontend default
|
||||
page_size_query_param = "page_size" # Allow clients to specify page size
|
||||
max_page_size = 10000 # Prevent excessive page sizes
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ const useChannelsTableStore = create((set, get) => ({
|
|||
sorting: [{ id: 'channel_number', desc: false }],
|
||||
pagination: {
|
||||
pageIndex: 0,
|
||||
pageSize: 50,
|
||||
pageSize: JSON.parse(localStorage.getItem('channel-table-prefs'))?.pageSize || 50,
|
||||
},
|
||||
selectedChannelIds: [],
|
||||
allQueryIds: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue