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:
2026-10-15 12:02:40 -04:00
co-authored by Claude Opus 5.5
parent d64e810866
commit 804493aee0
5 changed files with 41 additions and 15 deletions
+13 -5
View File
@@ -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>