feat(library): add library path and name fields to album and mediafile models

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-06-25 10:46:37 -04:00
commit 8c8ef7836a
8 changed files with 13 additions and 5 deletions

View file

@ -38,6 +38,7 @@ const AlbumInfo = (props) => {
const record = useRecordContext(props)
const data = {
album: <TextField source={'name'} />,
libraryName: <TextField source="libraryName" />,
albumArtist: (
<ArtistLinkField source="albumArtist" record={record} limit={Infinity} />
),

View file

@ -59,6 +59,7 @@ export const SongInfo = (props) => {
]
const data = {
path: <PathField />,
libraryName: <TextField source="libraryName" />,
album: (
<AlbumLinkField source="album" sortByOrder={'ASC'} record={record} />
),

View file

@ -12,6 +12,7 @@
"artist": "Artist",
"album": "Album",
"path": "File path",
"libraryName": "Library",
"genre": "Genre",
"compilation": "Compilation",
"year": "Year",
@ -58,6 +59,7 @@
"playCount": "Plays",
"size": "Size",
"name": "Name",
"libraryName": "Library",
"genre": "Genre",
"compilation": "Compilation",
"year": "Year",