Add option to change max playlists shown in UI's sidebar, MaxSidebarPlaylists. Fix #2077

This commit is contained in:
Deluan
2023-02-01 10:21:30 -05:00
parent d683297fa7
commit 128b626ec9
7 changed files with 21 additions and 6 deletions
+3 -2
View File
@@ -13,7 +13,8 @@ import { BiCog } from 'react-icons/bi'
import { useDrop } from 'react-dnd'
import SubMenu from './SubMenu'
import { canChangeTracks } from '../common'
import { DraggableTypes, MAX_SIDEBAR_PLAYLISTS } from '../consts'
import { DraggableTypes } from '../consts'
import config from '../config'
const PlaylistMenuItemLink = ({ pls, sidebarIsOpen }) => {
const dataProvider = useDataProvider()
@@ -56,7 +57,7 @@ const PlaylistsSubMenu = ({ state, setState, sidebarIsOpen, dense }) => {
payload: {
pagination: {
page: 0,
perPage: MAX_SIDEBAR_PLAYLISTS,
perPage: config.maxSidebarPlaylists,
},
sort: { field: 'name' },
},