Add movies tab to Studios and Performers page (#1675)

* Add movies tab to Studios page
* Add performers filter to movies
* Add movies tab to performers page
This commit is contained in:
gitgiggety
2021-09-07 04:16:33 +02:00
committed by GitHub
parent 4625e1f955
commit 7a468413da
10 changed files with 89 additions and 4 deletions

View File

@@ -28,6 +28,7 @@ import { StudioChildrenPanel } from "./StudioChildrenPanel";
import { StudioPerformersPanel } from "./StudioPerformersPanel";
import { StudioEditPanel } from "./StudioEditPanel";
import { StudioDetailsPanel } from "./StudioDetailsPanel";
import { StudioMoviesPanel } from "./StudioMoviesPanel";
interface IStudioParams {
id?: string;
@@ -186,7 +187,8 @@ export const Studio: React.FC = () => {
tab === "childstudios" ||
tab === "images" ||
tab === "galleries" ||
tab === "performers"
tab === "performers" ||
tab === "movies"
? tab
: "scenes";
const setActiveTabKey = (newTab: string | null) => {
@@ -276,6 +278,9 @@ export const Studio: React.FC = () => {
>
<StudioPerformersPanel studio={studio} />
</Tab>
<Tab eventKey="movies" title={intl.formatMessage({ id: "movies" })}>
<StudioMoviesPanel studio={studio} />
</Tab>
<Tab
eventKey="childstudios"
title={intl.formatMessage({ id: "child_studios" })}