mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 00:28:43 +01:00
Disable Last.FM features based on LastFM.Enabled config option
This commit is contained in:
parent
289da56f64
commit
cfb113bd33
9 changed files with 9 additions and 20 deletions
|
|
@ -19,7 +19,7 @@ const defaultConfig = {
|
|||
defaultTheme: 'Dark',
|
||||
enableUserEditing: true,
|
||||
devEnableShare: true,
|
||||
devEnableScrobble: true,
|
||||
lastFMEnabled: true,
|
||||
lastFMApiKey: '9b94a5515ea66b2da3ec03c12300327e',
|
||||
enableCoverAnimation: true,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const Personal = () => {
|
|||
<SelectLanguage />
|
||||
<SelectDefaultView />
|
||||
<NotificationsToggle />
|
||||
{config.devEnableScrobble && <LastfmScrobbleToggle />}
|
||||
{config.lastFMEnabled && <LastfmScrobbleToggle />}
|
||||
</SimpleForm>
|
||||
</Card>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ const PlayerEdit = (props) => (
|
|||
]}
|
||||
/>
|
||||
<BooleanInput source="reportRealPath" fullWidth />
|
||||
{config.devEnableScrobble && (
|
||||
{config.lastFMEnabled && (
|
||||
<BooleanInput source="scrobbleEnabled" fullWidth />
|
||||
)}
|
||||
<TextField source="client" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue