Create-account links for Last.fm and ListenBrainz, and Link Spotify for ListenBrainz
ListenBrainz accounts are MusicBrainz accounts, so its sign-up link goes to MusicBrainz. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import { Suspense, useEffect, useRef, useState } from 'react';
|
||||
import useSWR from 'swr';
|
||||
import {
|
||||
SERVICE_LABELS,
|
||||
SIGNUP_PAGES,
|
||||
SPOTIFY_LINK_PAGES,
|
||||
STREAMING_SERVICES,
|
||||
isQuietScrobbler,
|
||||
@@ -317,14 +318,21 @@ function Connections() {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{!byProvider.has(p) && (
|
||||
<div className="muted small">
|
||||
No account?{' '}
|
||||
<a href={SIGNUP_PAGES[p]} target="_blank" rel="noreferrer">
|
||||
Create one free on {p === 'lastfm' ? 'Last.fm' : 'MusicBrainz'}
|
||||
</a>
|
||||
{p === 'listenbrainz' ? ', then sign in to ListenBrainz once (it uses MusicBrainz accounts).' : '.'}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{byProvider.has(p) ? (
|
||||
<div className="row">
|
||||
{p === 'lastfm' && (
|
||||
<a className="btn" href="https://www.last.fm/settings/applications" target="_blank" rel="noreferrer">
|
||||
Link Spotify
|
||||
</a>
|
||||
)}
|
||||
<a className="btn" href={SPOTIFY_LINK_PAGES[p]} target="_blank" rel="noreferrer">
|
||||
Link Spotify
|
||||
</a>
|
||||
<button className="btn" onClick={() => disconnect(p)}>
|
||||
Disconnect
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user