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