mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 13:21:33 +08:00
feat(website): open external links in new tab in downloads
This commit is contained in:
parent
adf29b4e6e
commit
e639961b68
1 changed files with 2 additions and 0 deletions
|
|
@ -59,12 +59,14 @@ export function DownloadCard({ app, arch, entry: [ platform, entry ] }: { app: A
|
|||
className="recommended"
|
||||
href={buildDownloadUrl(app, platform as Platform, recommendedDownload[0], arch)}
|
||||
text={recommendedDownload[1].name}
|
||||
openExternally={!!recommendedDownload[1].url}
|
||||
/>
|
||||
|
||||
<div class="other-options">
|
||||
{restDownloads.map(download => (
|
||||
<Link
|
||||
href={buildDownloadUrl(app, platform as Platform, download[0], arch)}
|
||||
openExternally={!!download[1].url}
|
||||
>
|
||||
{download[1].name}
|
||||
</Link>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue