feat(ui): show bitDepth in song info dialog

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan 2025-03-22 15:48:29 -04:00
parent 3f9d173495
commit 296259d781
3 changed files with 4 additions and 1 deletions

View file

@ -18,6 +18,7 @@
"size": "Tamanho",
"updatedAt": "Últ. Atualização",
"bitRate": "Bitrate",
"bitDepth": "Profundidade de bits",
"discSubtitle": "Sub-título do disco",
"starred": "Favorita",
"comment": "Comentário",

View file

@ -74,6 +74,7 @@ export const SongInfo = (props) => {
),
compilation: <BooleanField source="compilation" />,
bitRate: <BitrateField source="bitRate" />,
bitDepth: <NumberField source="bitDepth" />,
channels: <NumberField source="channels" />,
size: <SizeField source="size" />,
updatedAt: <DateField source="updatedAt" showTime />,
@ -91,7 +92,7 @@ export const SongInfo = (props) => {
roles.push([name, record.participants[name].length])
}
const optionalFields = ['discSubtitle', 'comment', 'bpm', 'genre']
const optionalFields = ['discSubtitle', 'comment', 'bpm', 'genre', 'bitDepth']
optionalFields.forEach((field) => {
!record[field] && delete data[field]
})

View file

@ -18,6 +18,7 @@
"size": "File size",
"updatedAt": "Updated at",
"bitRate": "Bit rate",
"bitDepth": "Bit depth",
"channels": "Channels",
"discSubtitle": "Disc Subtitle",
"starred": "Favourite",