mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 17:04:16 +02:00
use separator string for releasetype display
This commit is contained in:
@@ -58,7 +58,7 @@ import {
|
|||||||
} from '/@/renderer/store/settings.store';
|
} from '/@/renderer/store/settings.store';
|
||||||
import { titleCase } from '/@/renderer/utils';
|
import { titleCase } from '/@/renderer/utils';
|
||||||
import { sanitize } from '/@/renderer/utils/sanitize';
|
import { sanitize } from '/@/renderer/utils/sanitize';
|
||||||
import { sortAlbumList } from '/@/shared/api/utils';
|
import { SEPARATOR_STRING, sortAlbumList } from '/@/shared/api/utils';
|
||||||
import { ActionIcon, ActionIconGroup } from '/@/shared/components/action-icon/action-icon';
|
import { ActionIcon, ActionIconGroup } from '/@/shared/components/action-icon/action-icon';
|
||||||
import { Badge } from '/@/shared/components/badge/badge';
|
import { Badge } from '/@/shared/components/badge/badge';
|
||||||
import { Button } from '/@/shared/components/button/button';
|
import { Button } from '/@/shared/components/button/button';
|
||||||
@@ -1266,7 +1266,7 @@ const ArtistAlbums = ({ albumsQuery }: ArtistAlbumsProps) => {
|
|||||||
if (releaseType.includes('/')) {
|
if (releaseType.includes('/')) {
|
||||||
const types = releaseType.split('/');
|
const types = releaseType.split('/');
|
||||||
const displayNames = types.map((type) => getDisplayNameForType(type));
|
const displayNames = types.map((type) => getDisplayNameForType(type));
|
||||||
displayName = displayNames.join('/');
|
displayName = displayNames.join(SEPARATOR_STRING);
|
||||||
} else {
|
} else {
|
||||||
displayName = getDisplayNameForType(releaseType);
|
displayName = getDisplayNameForType(releaseType);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user