mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-02 03:57:36 +03:00
feat(ui): show bitDepth in song info dialog
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
3f9d173495
commit
296259d781
3 changed files with 4 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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]
|
||||
})
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"size": "File size",
|
||||
"updatedAt": "Updated at",
|
||||
"bitRate": "Bit rate",
|
||||
"bitDepth": "Bit depth",
|
||||
"channels": "Channels",
|
||||
"discSubtitle": "Disc Subtitle",
|
||||
"starred": "Favourite",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue