mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-05 09:48:37 +01:00
Add option to enable (experimental) playlists in UI
This commit is contained in:
parent
0ca79eead4
commit
f881e2a54b
4 changed files with 11 additions and 5 deletions
|
|
@ -14,6 +14,7 @@ import artist from './artist'
|
|||
import playlist from './playlist'
|
||||
import { Player, playQueueReducer } from './audioplayer'
|
||||
import { albumViewReducer } from './album/albumState'
|
||||
import config from './config'
|
||||
import customRoutes from './routes'
|
||||
import themeReducer from './personal/themeReducer'
|
||||
import createAdminStore from './store/createAdminStore'
|
||||
|
|
@ -47,11 +48,13 @@ const App = () => (
|
|||
<Resource name="album" {...album} options={{ subMenu: 'library' }} />,
|
||||
<Resource name="artist" {...artist} options={{ subMenu: 'library' }} />,
|
||||
<Resource name="song" {...song} options={{ subMenu: 'library' }} />,
|
||||
<Resource
|
||||
name="playlist"
|
||||
{...playlist}
|
||||
options={{ subMenu: 'library' }}
|
||||
/>,
|
||||
config.enablePlaylists && (
|
||||
<Resource
|
||||
name="playlist"
|
||||
{...playlist}
|
||||
options={{ subMenu: 'library' }}
|
||||
/>
|
||||
),
|
||||
permissions === 'admin' ? (
|
||||
<Resource name="user" {...user} options={{ subMenu: 'settings' }} />
|
||||
) : null,
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ const defaultConfig = {
|
|||
baseURL: '',
|
||||
loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music',
|
||||
enableTranscodingConfig: true,
|
||||
enablePlaylists: true,
|
||||
}
|
||||
|
||||
let config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue