Add display loading state when updating item
This commit is contained in:
8 files changed
+231
-39
No files matched your search
@@ -292,8 +292,7 @@ const Home = () => {
|
||||
}
|
||||
queryKey={[
|
||||
"home",
|
||||
"resume",
|
||||
"video",
|
||||
"upNext",
|
||||
]}
|
||||
isPlayed={
|
||||
item.UserData.Played
|
||||
@@ -393,7 +392,7 @@ const Home = () => {
|
||||
queryKey={[
|
||||
"home",
|
||||
"resume",
|
||||
"video",
|
||||
"audio",
|
||||
]}
|
||||
isPlayed={
|
||||
item.UserData.Played
|
||||
|
||||
@@ -968,6 +968,50 @@ const LibraryView = () => {
|
||||
? "square"
|
||||
: "portrait"
|
||||
}
|
||||
isFavorite={
|
||||
item.UserData.IsFavorite
|
||||
}
|
||||
queryKey={[
|
||||
"libraryView",
|
||||
"currentLibItems",
|
||||
id,
|
||||
`page: ${page}`,
|
||||
[
|
||||
currentViewType,
|
||||
|
||||
sortAscending
|
||||
? SortOrder.Ascending
|
||||
: SortOrder.Descending,
|
||||
,
|
||||
sortBy,
|
||||
[
|
||||
isPlayed,
|
||||
isUnPlayed,
|
||||
isResumable,
|
||||
isFavorite,
|
||||
isLiked,
|
||||
isUnliked,
|
||||
],
|
||||
[
|
||||
hasSubtitles,
|
||||
hasTrailer,
|
||||
hasSpecialFeature,
|
||||
hasThemeSong,
|
||||
hasThemeVideo,
|
||||
],
|
||||
[
|
||||
isBluRay,
|
||||
isDVD,
|
||||
isHD,
|
||||
is4K,
|
||||
is3D,
|
||||
],
|
||||
],
|
||||
]}
|
||||
isPlayed={
|
||||
item.UserData.Played
|
||||
}
|
||||
userId={user.data.Id}
|
||||
></Card>
|
||||
</Grid2>
|
||||
);
|
||||
|
||||
@@ -284,13 +284,10 @@ export const UserLogin = () => {
|
||||
key={index}
|
||||
itemName={item.Name}
|
||||
itemId={item.Id}
|
||||
imageTags={
|
||||
!!item.PrimaryImageTag
|
||||
}
|
||||
disableOverlay
|
||||
iconType="User"
|
||||
cardOrientation="sqaure"
|
||||
onClickEvent={() =>
|
||||
itemType="User"
|
||||
cardType="square"
|
||||
onClick={() =>
|
||||
navigate(
|
||||
`/login/withImg/${item.Name}/${item.Id}/`,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user