|
|
@ -9,6 +9,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
|
|
import React, { FunctionComponent, useCallback, useMemo } from "react";
|
|
|
|
import React, { FunctionComponent, useCallback, useMemo } from "react";
|
|
|
|
import { Badge, ButtonGroup } from "react-bootstrap";
|
|
|
|
import { Badge, ButtonGroup } from "react-bootstrap";
|
|
|
|
import { Column, TableOptions, TableUpdater } from "react-table";
|
|
|
|
import { Column, TableOptions, TableUpdater } from "react-table";
|
|
|
|
|
|
|
|
import { useSerieBy } from "../../@redux/hooks";
|
|
|
|
import { ProvidersApi } from "../../apis";
|
|
|
|
import { ProvidersApi } from "../../apis";
|
|
|
|
import {
|
|
|
|
import {
|
|
|
|
ActionButton,
|
|
|
|
ActionButton,
|
|
|
@ -131,10 +132,13 @@ const Table: FunctionComponent<Props> = ({ episodes, update }) => {
|
|
|
|
Header: "Actions",
|
|
|
|
Header: "Actions",
|
|
|
|
accessor: "sonarrEpisodeId",
|
|
|
|
accessor: "sonarrEpisodeId",
|
|
|
|
Cell: ({ row, externalUpdate }) => {
|
|
|
|
Cell: ({ row, externalUpdate }) => {
|
|
|
|
|
|
|
|
const [serie] = useSerieBy(row.original.sonarrSeriesId);
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ButtonGroup>
|
|
|
|
<ButtonGroup>
|
|
|
|
<ActionButton
|
|
|
|
<ActionButton
|
|
|
|
icon={faUser}
|
|
|
|
icon={faUser}
|
|
|
|
|
|
|
|
disabled={serie.data?.profileId === null}
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|
externalUpdate && externalUpdate(row, "manual-search");
|
|
|
|
externalUpdate && externalUpdate(row, "manual-search");
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|