mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
add size to album detail header
This commit is contained in:
@@ -20,7 +20,7 @@ import { songsQueries } from '/@/renderer/features/songs/api/songs-api';
|
|||||||
import { AppRoute } from '/@/renderer/router/routes';
|
import { AppRoute } from '/@/renderer/router/routes';
|
||||||
import { useCurrentServer, useShowRatings } from '/@/renderer/store';
|
import { useCurrentServer, useShowRatings } from '/@/renderer/store';
|
||||||
import { useArtistRadioCount, usePlayButtonBehavior } from '/@/renderer/store/settings.store';
|
import { useArtistRadioCount, usePlayButtonBehavior } from '/@/renderer/store/settings.store';
|
||||||
import { formatDateAbsoluteUTC, formatDurationString } from '/@/renderer/utils';
|
import { formatDateAbsoluteUTC, formatDurationString, formatSizeString } from '/@/renderer/utils';
|
||||||
import { normalizeReleaseTypes } from '/@/renderer/utils/normalize-release-types';
|
import { normalizeReleaseTypes } from '/@/renderer/utils/normalize-release-types';
|
||||||
import { Group } from '/@/shared/components/group/group';
|
import { Group } from '/@/shared/components/group/group';
|
||||||
import { Separator } from '/@/shared/components/separator/separator';
|
import { Separator } from '/@/shared/components/separator/separator';
|
||||||
@@ -192,6 +192,12 @@ export const AlbumDetailHeader = forwardRef<HTMLDivElement>((_props, ref) => {
|
|||||||
id: 'explicitStatus',
|
id: 'explicitStatus',
|
||||||
value: detailQuery?.data?.explicitStatus,
|
value: detailQuery?.data?.explicitStatus,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'size',
|
||||||
|
value: detailQuery?.data?.size
|
||||||
|
? formatSizeString(detailQuery?.data?.size)
|
||||||
|
: undefined,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'playCount',
|
id: 'playCount',
|
||||||
value: playCount ? t('entity.play', { count: playCount }) : undefined,
|
value: playCount ? t('entity.play', { count: playCount }) : undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user