diff --git a/conf/configuration.go b/conf/configuration.go
index d7af94ea1..f7f958c10 100644
--- a/conf/configuration.go
+++ b/conf/configuration.go
@@ -36,6 +36,7 @@ type nd struct {
// DevFlags. These are used to enable/disable debugging and incomplete features
DevLogSourceLine bool `default:"false"`
DevAutoCreateAdminPassword string `default:""`
+ DevEnableUIPlaylists bool `default:"false"`
}
var Server = &nd{}
diff --git a/server/app/serve_index.go b/server/app/serve_index.go
index 7a5948d12..4c6a997e0 100644
--- a/server/app/serve_index.go
+++ b/server/app/serve_index.go
@@ -30,6 +30,7 @@ func ServeIndex(ds model.DataStore, fs http.FileSystem) http.HandlerFunc {
"baseURL": strings.TrimSuffix(conf.Server.BaseURL, "/"),
"loginBackgroundURL": conf.Server.UILoginBackgroundURL,
"enableTranscodingConfig": conf.Server.EnableTranscodingConfig,
+ "enablePlaylists": conf.Server.DevEnableUIPlaylists,
}
j, err := json.Marshal(appConfig)
if err != nil {
diff --git a/ui/src/App.js b/ui/src/App.js
index 22fa38ded..3677da3b0 100644
--- a/ui/src/App.js
+++ b/ui/src/App.js
@@ -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 = () => (
,
,
,
- ,
+ config.enablePlaylists && (
+
+ ),
permissions === 'admin' ? (
) : null,
diff --git a/ui/src/config.js b/ui/src/config.js
index 513f8d660..1c862dcde 100644
--- a/ui/src/config.js
+++ b/ui/src/config.js
@@ -7,6 +7,7 @@ const defaultConfig = {
baseURL: '',
loginBackgroundURL: 'https://source.unsplash.com/random/1600x900?music',
enableTranscodingConfig: true,
+ enablePlaylists: true,
}
let config