Add flag to disable Scrobble config in the UI

This commit is contained in:
Deluan
2021-06-10 21:04:26 -04:00
committed by Deluan Quintão
parent a4f91b74d2
commit ffa76bba6a
6 changed files with 60 additions and 0 deletions
+3
View File
@@ -5,6 +5,8 @@ import { SelectLanguage } from './SelectLanguage'
import { SelectTheme } from './SelectTheme'
import { SelectDefaultView } from './SelectDefaultView'
import { NotificationsToggle } from './NotificationsToggle'
import { ScrobbleToggle } from './ScrobbleToggle'
import config from '../config'
const useStyles = makeStyles({
root: { marginTop: '1em' },
@@ -22,6 +24,7 @@ const Personal = () => {
<SelectLanguage />
<SelectDefaultView />
<NotificationsToggle />
{config.devEnableScrobble && <ScrobbleToggle />}
</SimpleForm>
</Card>
)