diff options
author | morpheus65535 <[email protected]> | 2021-04-16 21:59:16 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-04-16 21:59:16 -0400 |
commit | 5f66724d2a6a5d5c65d32e6c86671741299e5119 (patch) | |
tree | 3f340eda11d2c83c7498251416b1316e43f7fd29 | |
parent | 47842117eda2a687152442e9e87d7387d0d5dc71 (diff) | |
download | bazarr-5f66724d2a6a5d5c65d32e6c86671741299e5119.tar.gz bazarr-5f66724d2a6a5d5c65d32e6c86671741299e5119.zip |
Added eligible for upgrade icon in histories.
-rw-r--r-- | frontend/src/History/Movies/index.tsx | 23 | ||||
-rw-r--r-- | frontend/src/History/Series/index.tsx | 23 |
2 files changed, 44 insertions, 2 deletions
diff --git a/frontend/src/History/Movies/index.tsx b/frontend/src/History/Movies/index.tsx index c3e26ba13..c80f8c5f0 100644 --- a/frontend/src/History/Movies/index.tsx +++ b/frontend/src/History/Movies/index.tsx @@ -1,4 +1,4 @@ -import { faInfoCircle } from "@fortawesome/free-solid-svg-icons"; +import { faInfoCircle, faRecycle } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React, { FunctionComponent, useCallback, useMemo } from "react"; import { Badge, OverlayTrigger, Popover } from "react-bootstrap"; @@ -92,6 +92,27 @@ const MoviesHistoryView: FunctionComponent<Props> = () => { }, }, { + accessor: "upgradable", + Cell: (row) => { + const overlay = ( + <Popover id={`description-${row.row.id}`}> + <Popover.Content> + This Subtitles File Is Eligible For An Upgrade. + </Popover.Content> + </Popover> + ); + if (row.value) { + return ( + <OverlayTrigger overlay={overlay}> + <FontAwesomeIcon size="sm" icon={faRecycle}></FontAwesomeIcon> + </OverlayTrigger> + ); + } else { + return null; + } + }, + }, + { accessor: "blacklisted", Cell: ({ row, externalUpdate }) => { const original = row.original; diff --git a/frontend/src/History/Series/index.tsx b/frontend/src/History/Series/index.tsx index 8f128304b..02dbda4f1 100644 --- a/frontend/src/History/Series/index.tsx +++ b/frontend/src/History/Series/index.tsx @@ -1,4 +1,4 @@ -import { faInfoCircle } from "@fortawesome/free-solid-svg-icons"; +import { faInfoCircle, faRecycle } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import React, { FunctionComponent, useCallback, useMemo } from "react"; import { Badge, OverlayTrigger, Popover } from "react-bootstrap"; @@ -99,6 +99,27 @@ const SeriesHistoryView: FunctionComponent<Props> = () => { }, }, { + accessor: "upgradable", + Cell: (row) => { + const overlay = ( + <Popover id={`description-${row.row.id}`}> + <Popover.Content> + This Subtitles File Is Eligible For An Upgrade. + </Popover.Content> + </Popover> + ); + if (row.value) { + return ( + <OverlayTrigger overlay={overlay}> + <FontAwesomeIcon size="sm" icon={faRecycle}></FontAwesomeIcon> + </OverlayTrigger> + ); + } else { + return null; + } + }, + }, + { accessor: "blacklisted", Cell: ({ row, externalUpdate }) => { const original = row.original; |