feat: disable Libre.fm option and remove "private profiles" part from
ListenBrainz page
This commit is contained in:
parent
a9d756f0a2
commit
d6b181eee0
2 changed files with 5 additions and 5 deletions
|
|
@ -148,9 +148,7 @@ export default function Settings() {
|
||||||
? "✅ Configured"
|
? "✅ Configured"
|
||||||
: "❌ Missing credentials";
|
: "❌ Missing credentials";
|
||||||
case "librefm":
|
case "librefm":
|
||||||
return getStorage("librefmUsername") && getStorage("librefmApiKey")
|
return "❌ Service temporarily disabled";
|
||||||
? "✅ Configured"
|
|
||||||
: "❌ Missing credentials";
|
|
||||||
case "listenbrainz":
|
case "listenbrainz":
|
||||||
return getStorage("listenbrainzUsername")
|
return getStorage("listenbrainzUsername")
|
||||||
? "✅ Configured"
|
? "✅ Configured"
|
||||||
|
|
@ -188,6 +186,7 @@ export default function Settings() {
|
||||||
forceUpdate();
|
forceUpdate();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
disabled={service === "librefm"}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
|
|
@ -208,7 +207,7 @@ export default function Settings() {
|
||||||
/>
|
/>
|
||||||
<TableRow
|
<TableRow
|
||||||
label="Libre.fm Settings"
|
label="Libre.fm Settings"
|
||||||
subLabel="Configure Libre.fm credentials and options"
|
subLabel="Disabled - not being able to test it out"
|
||||||
trailing={<TableRow.Arrow />}
|
trailing={<TableRow.Arrow />}
|
||||||
onPress={() =>
|
onPress={() =>
|
||||||
navigation.push("VendettaCustomPage", {
|
navigation.push("VendettaCustomPage", {
|
||||||
|
|
@ -216,6 +215,7 @@ export default function Settings() {
|
||||||
render: LibreFmSettingsPage,
|
render: LibreFmSettingsPage,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
disabled={true}
|
||||||
/>
|
/>
|
||||||
<TableRow
|
<TableRow
|
||||||
label="ListenBrainz Settings"
|
label="ListenBrainz Settings"
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ export default function ListenBrainzSettingsPage() {
|
||||||
isClearable
|
isClearable
|
||||||
/>
|
/>
|
||||||
<TextInput
|
<TextInput
|
||||||
placeholder="ListenBrainz Token (for private profiles)"
|
placeholder="ListenBrainz Token"
|
||||||
value={getStorage("listenbrainzToken")}
|
value={getStorage("listenbrainzToken")}
|
||||||
onChange={(v: string) => {
|
onChange={(v: string) => {
|
||||||
setStorage("listenbrainzToken", v);
|
setStorage("listenbrainzToken", v);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue