mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
feat(release): add torrent download link to release table (#911)
* add torrent download link to release table * remove draft from api * remove leftover whitespace
This commit is contained in:
parent
7817e85621
commit
605ceaf5f4
1 changed files with 23 additions and 11 deletions
|
@ -21,7 +21,7 @@ import * as DataTable from "@components/data-table";
|
||||||
|
|
||||||
import { IndexerSelectColumnFilter, PushStatusSelectColumnFilter, SearchColumnFilter } from "./Filters";
|
import { IndexerSelectColumnFilter, PushStatusSelectColumnFilter, SearchColumnFilter } from "./Filters";
|
||||||
import { classNames } from "@utils";
|
import { classNames } from "@utils";
|
||||||
import { ArrowTopRightOnSquareIcon } from "@heroicons/react/24/outline";
|
import { ArrowTopRightOnSquareIcon, ArrowDownTrayIcon } from "@heroicons/react/24/outline";
|
||||||
import { Tooltip } from "@components/tooltips/Tooltip";
|
import { Tooltip } from "@components/tooltips/Tooltip";
|
||||||
|
|
||||||
export const releaseKeys = {
|
export const releaseKeys = {
|
||||||
|
@ -101,16 +101,28 @@ export const ReleaseTable = () => {
|
||||||
{String(props.cell.value)}
|
{String(props.cell.value)}
|
||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
{props.row.original.info_url && (
|
<div className="flex mr-0">
|
||||||
<a
|
{props.row.original.download_url && (
|
||||||
rel="noopener noreferrer"
|
<a
|
||||||
target="_blank"
|
rel="noopener noreferrer"
|
||||||
href={props.row.original.info_url}
|
target="_blank"
|
||||||
className="max-w-[90vw] mr-2"
|
href={props.row.original.download_url}
|
||||||
>
|
className="max-w-[90vw] px-2"
|
||||||
<ArrowTopRightOnSquareIcon className="h-5 w-5 text-blue-400 hover:text-blue-500 dark:text-blue-500 dark:hover:text-blue-600" aria-hidden="true" />
|
>
|
||||||
</a>
|
<ArrowDownTrayIcon className="h-5 w-5 text-blue-400 hover:text-blue-500 dark:text-blue-500 dark:hover:text-blue-600" aria-hidden="true" />
|
||||||
)}
|
</a>
|
||||||
|
)}
|
||||||
|
{props.row.original.info_url && (
|
||||||
|
<a
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
target="_blank"
|
||||||
|
href={props.row.original.info_url}
|
||||||
|
className="max-w-[90vw]"
|
||||||
|
>
|
||||||
|
<ArrowTopRightOnSquareIcon className="h-5 w-5 text-blue-400 hover:text-blue-500 dark:text-blue-500 dark:hover:text-blue-600" aria-hidden="true" />
|
||||||
|
</a>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue