diff options
author | morpheus65535 <[email protected]> | 2021-04-18 22:55:35 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-04-18 22:55:35 -0400 |
commit | e848e107c841eb795f29b352db817de59c52056d (patch) | |
tree | 419998256fc9f7461c30c9ee5381a3cefcac151d | |
parent | 89a481c42c581b0edd4cee19db92506760c85f73 (diff) | |
download | bazarr-e848e107c841eb795f29b352db817de59c52056d.tar.gz bazarr-e848e107c841eb795f29b352db817de59c52056d.zip |
Added monitored status to movie detailed view.
-rw-r--r-- | frontend/src/@types/api.d.ts | 1 | ||||
-rw-r--r-- | frontend/src/generic/ItemOverview.tsx | 12 |
2 files changed, 12 insertions, 1 deletions
diff --git a/frontend/src/@types/api.d.ts b/frontend/src/@types/api.d.ts index 21dbc332f..2003038b1 100644 --- a/frontend/src/@types/api.d.ts +++ b/frontend/src/@types/api.d.ts @@ -109,6 +109,7 @@ namespace Item { alternativeTitles: string[]; poster: string; year: string; + monitored: boolean; }; type Series = Base & diff --git a/frontend/src/generic/ItemOverview.tsx b/frontend/src/generic/ItemOverview.tsx index d125f16fe..95d28b535 100644 --- a/frontend/src/generic/ItemOverview.tsx +++ b/frontend/src/generic/ItemOverview.tsx @@ -1,8 +1,10 @@ import { + faBookmark as farBookmark, faClone as fasClone, faFolder, } from "@fortawesome/free-regular-svg-icons"; import { + faBookmark, faLanguage, faMusic, faStream, @@ -22,7 +24,7 @@ import { } from "react-bootstrap"; import { useProfileBy, useProfileItems } from "../@redux/hooks"; import { LanguageText } from "../components"; -import { BuildKey } from "../utilites"; +import { BuildKey, isMovie } from "../utilites"; interface Props { item: Item.Base; @@ -148,6 +150,14 @@ const ItemOverview: FunctionComponent<Props> = (props) => { <Col> <Container fluid className="text-white"> <Row> + <span hidden={!isMovie(item)}> + <FontAwesomeIcon + className="mx-2 mt-2" + title={item.monitored ? "monitored" : "unmonitored"} + icon={item.monitored ? faBookmark : farBookmark} + size="2x" + ></FontAwesomeIcon> + </span> <h1>{item.title}</h1> <span hidden={item.alternativeTitles.length === 0}> <OverlayTrigger overlay={alternativePopover}> |