aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/spotifyControls/PlayerComponent.tsx
diff options
context:
space:
mode:
authorJānis <97699850+janisslsm@users.noreply.github.com>2022-11-10 20:33:00 +0200
committerGitHub <noreply@github.com>2022-11-10 19:33:00 +0100
commit57f3feba6896033008826818b3260f4474d9cfae (patch)
tree7a8387dfc2f4cc7ae3d0d9c3491a1df9e00f5e55 /src/plugins/spotifyControls/PlayerComponent.tsx
parent010523eeace659fe95c85961e6f3fee5c5596a3f (diff)
downloadVencord-57f3feba6896033008826818b3260f4474d9cfae.tar.gz
Vencord-57f3feba6896033008826818b3260f4474d9cfae.tar.bz2
Vencord-57f3feba6896033008826818b3260f4474d9cfae.zip
spotifyControls: make album of local tracks unclickable (#203)
Diffstat (limited to 'src/plugins/spotifyControls/PlayerComponent.tsx')
-rw-r--r--src/plugins/spotifyControls/PlayerComponent.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/spotifyControls/PlayerComponent.tsx b/src/plugins/spotifyControls/PlayerComponent.tsx
index 16fa250..6396e02 100644
--- a/src/plugins/spotifyControls/PlayerComponent.tsx
+++ b/src/plugins/spotifyControls/PlayerComponent.tsx
@@ -293,15 +293,16 @@ function Info({ track }: { track: Track; }) {
{track.album.name && (
<Forms.FormText variant="text-sm/normal" className={cl("ellipoverflow")}>
on&nbsp;
- <a id={cl("album-title")}
+ <Link id={cl("album-title")}
href={`https://open.spotify.com/album/${track.album.id}`}
target="_blank"
className={cl("album")}
+ disabled={!track.album.id}
style={{ fontSize: "inherit" }}
title={track.album.name}
>
{track.album.name}
- </a>
+ </Link>
</Forms.FormText>
)}
</div>