1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-26 17:47:20 +00:00

Added eligible for upgrade icon in histories.

This commit is contained in:
morpheus65535 2021-04-16 21:59:16 -04:00
parent 47842117ed
commit 5f66724d2a
2 changed files with 44 additions and 2 deletions

View file

@ -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 }) => {

View file

@ -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 }) => {