mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-03 07:10:08 -05:00
[web] Avoid properties having a value of zero to be displayed
This commit is contained in:
parent
bdad6d61bf
commit
4a616b7e10
@ -49,11 +49,15 @@ export default {
|
||||
{ key: 'property.genre', value: this.item.genre },
|
||||
{
|
||||
key: 'property.position',
|
||||
value: [this.item.disc_number, this.item.track_number].join(' / ')
|
||||
value:
|
||||
this.item.track_number > 0 &&
|
||||
[this.item.disc_number, this.item.track_number].join(' / ')
|
||||
},
|
||||
{
|
||||
key: 'property.duration',
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
value:
|
||||
this.item.length_ms > 0 &&
|
||||
this.$filters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{
|
||||
key: 'property.type',
|
||||
|
Loading…
x
Reference in New Issue
Block a user