mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
remove rating from item card if using jellyfin
This commit is contained in:
@@ -21,6 +21,7 @@ import {
|
|||||||
Artist,
|
Artist,
|
||||||
LibraryItem,
|
LibraryItem,
|
||||||
Playlist,
|
Playlist,
|
||||||
|
ServerType,
|
||||||
Song,
|
Song,
|
||||||
} from '/@/shared/types/domain-types';
|
} from '/@/shared/types/domain-types';
|
||||||
import { Play } from '/@/shared/types/types';
|
import { Play } from '/@/shared/types/types';
|
||||||
@@ -265,12 +266,14 @@ export const ItemCardControls = ({
|
|||||||
{controls?.onFavorite && (
|
{controls?.onFavorite && (
|
||||||
<FavoriteButton isFavorite={isFavorite} onClick={favoriteHandler} />
|
<FavoriteButton isFavorite={isFavorite} onClick={favoriteHandler} />
|
||||||
)}
|
)}
|
||||||
{controls?.onRating && (
|
{controls?.onRating &&
|
||||||
<RatingButton
|
(item?._serverType === ServerType.NAVIDROME ||
|
||||||
onChange={ratingChangeHandler}
|
item?._serverType === ServerType.SUBSONIC) && (
|
||||||
rating={(item as { userRating: number }).userRating}
|
<RatingButton
|
||||||
/>
|
onChange={ratingChangeHandler}
|
||||||
)}
|
rating={(item as { userRating: number }).userRating}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
{controls?.onMore && (
|
{controls?.onMore && (
|
||||||
<SecondaryButton
|
<SecondaryButton
|
||||||
className={styles.options}
|
className={styles.options}
|
||||||
|
|||||||
Reference in New Issue
Block a user