mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-09 03:38:48 +01:00
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:
parent
b4c3590bfe
commit
8c8ef7836a
8 changed files with 13 additions and 5 deletions
|
|
@ -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} />
|
||||
),
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ export const SongInfo = (props) => {
|
|||
]
|
||||
const data = {
|
||||
path: <PathField />,
|
||||
libraryName: <TextField source="libraryName" />,
|
||||
album: (
|
||||
<AlbumLinkField source="album" sortByOrder={'ASC'} record={record} />
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue