mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Port Movies UI to v2.5 (#397)
* Ignore generated-graphql.tsx in 2.5 * Make movie name mandatory * Port #395 fix to v2.5 * Differentiate front/back image browse buttons * Move URL, Synopsis to separate rows * Fix unknown query params crashing UI
This commit is contained in:
@@ -26,6 +26,18 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
</Link>
|
||||
));
|
||||
|
||||
const renderMovies = (movies: Partial<GQL.SceneMovie>[]) => {
|
||||
return movies.map(sceneMovie =>
|
||||
!sceneMovie.movie ? (
|
||||
undefined
|
||||
) : (
|
||||
<Link to={NavUtils.makeMovieScenesUrl(sceneMovie.movie)}>
|
||||
<h6>{sceneMovie.movie.name}</h6>
|
||||
</Link>
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
const renderSceneRow = (scene: GQL.SlimSceneDataFragment) => (
|
||||
<tr key={scene.id}>
|
||||
<td>
|
||||
@@ -58,6 +70,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
</Link>
|
||||
)}
|
||||
</td>
|
||||
<td>{renderMovies(scene.movies)}</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
@@ -73,6 +86,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
<th>Tags</th>
|
||||
<th>Performers</th>
|
||||
<th>Studio</th>
|
||||
<th>Movies</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>{props.scenes.map(renderSceneRow)}</tbody>
|
||||
|
||||
Reference in New Issue
Block a user