[enhancement]: allow copying/opening path in song modal

This commit is contained in:
Kendall Garner 2024-04-06 16:13:09 -07:00
parent c1345802aa
commit 2c17458fdf
No known key found for this signature in database
GPG key ID: 18D2767419676C87
5 changed files with 94 additions and 1 deletions

View file

@ -9,6 +9,7 @@ import { formatSizeString } from '/@/renderer/utils/format-size-string';
import { replaceURLWithHTMLLinks } from '/@/renderer/utils/linkify';
import { Rating, Spoiler } from '/@/renderer/components';
import { sanitize } from '/@/renderer/utils/sanitize';
import { SongPath } from '/@/renderer/features/item-details/components/song-path';
export type ItemDetailsModalProps = {
item: Album | AlbumArtist | Song;
@ -156,7 +157,7 @@ const AlbumArtistPropertyMapping: ItemDetailRow<AlbumArtist>[] = [
const SongPropertyMapping: ItemDetailRow<Song>[] = [
{ key: 'name', label: 'common.title' },
{ key: 'path', label: 'common.path' },
{ key: 'path', label: 'common.path', render: SongPath },
{ label: 'entity.albumArtist_one', render: formatArtists },
{ key: 'album', label: 'entity.album_one' },
{ key: 'discNumber', label: 'common.disc' },