Update libView and titlePage #26
This commit is contained in:
2 files changed
+47
-2
No files matched your search
@@ -30,7 +30,7 @@ import { AvatarImage } from "../../components/avatar/avatar";
|
|||||||
|
|
||||||
import { Blurhash } from "react-blurhash";
|
import { Blurhash } from "react-blurhash";
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
import { useParams, useNavigate } from "react-router-dom";
|
import { useParams, useNavigate, Link as RouterLink } from "react-router-dom";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
BaseItemKind,
|
BaseItemKind,
|
||||||
@@ -693,6 +693,42 @@ const ItemDetail = () => {
|
|||||||
>
|
>
|
||||||
{item.data.OriginalTitle}
|
{item.data.OriginalTitle}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
{!!item.data.AlbumArtists && (
|
||||||
|
<Stack
|
||||||
|
direction="row"
|
||||||
|
gap={0.5}
|
||||||
|
divider={
|
||||||
|
<Typography variant="h6">
|
||||||
|
,
|
||||||
|
</Typography>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{item.data.AlbumArtists.map(
|
||||||
|
(
|
||||||
|
artist,
|
||||||
|
aindex,
|
||||||
|
) => {
|
||||||
|
return (
|
||||||
|
<Link
|
||||||
|
component={
|
||||||
|
RouterLink
|
||||||
|
}
|
||||||
|
variant="h6"
|
||||||
|
sx={{
|
||||||
|
opacity: 0.7,
|
||||||
|
}}
|
||||||
|
color="inherit"
|
||||||
|
to={`/item/${artist.Id}`}
|
||||||
|
>
|
||||||
|
{
|
||||||
|
artist.Name
|
||||||
|
}
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
|
},
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
|
|||||||
@@ -441,6 +441,14 @@ const LibraryView = () => {
|
|||||||
items.refetch();
|
items.refetch();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const disablePaginationViews = [
|
||||||
|
"MusicArtist",
|
||||||
|
"Person",
|
||||||
|
"Genre",
|
||||||
|
"MusicGenre",
|
||||||
|
"Studio",
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
@@ -1098,8 +1106,9 @@ const LibraryView = () => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{!items.isFetching &&
|
{!items.isFetching &&
|
||||||
|
!disablePaginationViews.includes(currentViewType) &&
|
||||||
items.isSuccess &&
|
items.isSuccess &&
|
||||||
items.data.TotalRecordCount > 75 && (
|
items.data.TotalRecordCount > maxDisplayItems && (
|
||||||
<Stack
|
<Stack
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
justifyContent="center"
|
justifyContent="center"
|
||||||
|
|||||||
Reference in new issue
Block a user