mirror of
https://github.com/morpheus65535/bazarr
synced 2025-03-15 00:18:48 +00:00
Added monitored status to movie detailed view.
This commit is contained in:
parent
89a481c42c
commit
e848e107c8
2 changed files with 12 additions and 1 deletions
1
frontend/src/@types/api.d.ts
vendored
1
frontend/src/@types/api.d.ts
vendored
|
@ -109,6 +109,7 @@ namespace Item {
|
|||
alternativeTitles: string[];
|
||||
poster: string;
|
||||
year: string;
|
||||
monitored: boolean;
|
||||
};
|
||||
|
||||
type Series = Base &
|
||||
|
|
|
@ -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}>
|
||||
|
|
Loading…
Add table
Reference in a new issue