diff --git a/conf/configuration.go b/conf/configuration.go index b3ab11c1..9a97be9d 100644 --- a/conf/configuration.go +++ b/conf/configuration.go @@ -228,7 +228,7 @@ func init() { viper.SetDefault("devFastAccessCoverArt", false) viper.SetDefault("devactivitypanel", true) viper.SetDefault("devenableshare", false) - viper.SetDefault("devenablescrobble", false) + viper.SetDefault("devenablescrobble", true) } func InitConfig(cfgFile string) { diff --git a/server/serve_index_test.go b/server/serve_index_test.go index f524801b..c252ee70 100644 --- a/server/serve_index_test.go +++ b/server/serve_index_test.go @@ -207,7 +207,7 @@ var _ = Describe("serveIndex", func() { serveIndex(ds, fs)(w, r) config := extractAppConfig(w.Body.String()) - Expect(config).To(HaveKeyWithValue("devEnableScrobble", false)) + Expect(config).To(HaveKeyWithValue("devEnableScrobble", true)) }) It("sets the lastFMApiKey", func() { diff --git a/ui/src/player/PlayerEdit.js b/ui/src/player/PlayerEdit.js index 9b50f795..6207ad4f 100644 --- a/ui/src/player/PlayerEdit.js +++ b/ui/src/player/PlayerEdit.js @@ -11,6 +11,7 @@ import { useTranslate, } from 'react-admin' import { Title } from '../common' +import config from '../config' const PlayerTitle = ({ record }) => { const translate = useTranslate() @@ -47,7 +48,9 @@ const PlayerEdit = (props) => ( ]} /> - + {config.devEnableScrobble && ( + + )}