show magnet/torrent links
This commit is contained in:
parent
c7bc3c50f7
commit
78997071a1
@ -242,9 +242,24 @@ export function FilePreview() {
|
||||
{info.uploader ? <InlineProfile profile={info.uploader}/> : null}
|
||||
</div>
|
||||
<div>
|
||||
{canAccessFile() ?
|
||||
{canAccessFile() &&
|
||||
<>
|
||||
|
||||
<a className="btn" href={info?.metadata?.magnetLink}>
|
||||
<FeatherIcon icon="link" size="14px" className="mr10"/>
|
||||
Magnet
|
||||
</a>
|
||||
<a className="btn" href={`${link}.torrent`}
|
||||
download={info.metadata?.name ?? info.id}>
|
||||
<FeatherIcon icon="file" size="14px" className="mr10"/>
|
||||
Torrent
|
||||
</a>
|
||||
<a className="btn" href={link}
|
||||
download={info.metadata?.name ?? info.id}>Download</a> : null}
|
||||
download={info.metadata?.name ?? info.id}>
|
||||
<FeatherIcon icon="download" size="14px" className="mr10"/>
|
||||
Direct Download
|
||||
</a>
|
||||
</>}
|
||||
</div>
|
||||
</div>
|
||||
{renderPayment()}
|
||||
|
@ -98,3 +98,7 @@ pre.copy {
|
||||
border: 1px solid;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.mr10 {
|
||||
margin-right: 10px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user