Added eligible for upgrade icon in histories.

pull/1402/head
morpheus65535 4 years ago
parent 47842117ed
commit 5f66724d2a

@ -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";
@ -91,6 +91,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 }) => {

@ -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";
@ -98,6 +98,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 }) => {

Loading…
Cancel
Save