Copy playlist link instead of download playlist

This commit is contained in:
Astrid 2024-01-31 22:22:26 +01:00
parent a562cbeb25
commit 71ddbca657

View File

@ -69,7 +69,17 @@ export function DownloadView({ id }: { id: string }) {
<StyleTrans k="player.menus.downloads.hlsDisclaimer" />
</Menu.Paragraph>
<Button className="w-full" href={downloadUrl} theme="purple">
<Button
className="w-full"
theme="purple"
href={downloadUrl}
onClick={(event) => {
// Allow context menu & left click to copy
event.preventDefault();
navigator.clipboard.writeText(downloadUrl);
}}
>
{t("player.menus.downloads.downloadPlaylist")}
</Button>
<Button