mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 12:53:00 -05:00
[web] Remove quality and position properties when no values are available
This commit is contained in:
@@ -62,7 +62,9 @@ export default {
|
||||
},
|
||||
{
|
||||
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',
|
||||
@@ -75,12 +77,14 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.quality',
|
||||
value: this.$t('dialog.track.quality-value', {
|
||||
bitrate: this.item.bitrate,
|
||||
count: this.item.channels,
|
||||
format: this.item.type,
|
||||
samplerate: this.item.samplerate
|
||||
})
|
||||
value:
|
||||
this.item.data_kind !== 'spotify' &&
|
||||
this.$t('dialog.track.quality', {
|
||||
bitrate: this.item.bitrate,
|
||||
count: this.item.channels,
|
||||
format: this.item.type,
|
||||
samplerate: this.item.samplerate
|
||||
})
|
||||
}
|
||||
],
|
||||
uri: this.item.uri
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
key: 'property.quality',
|
||||
value:
|
||||
this.item.data_kind !== 'spotify' &&
|
||||
this.$t('dialog.track.quality-value', {
|
||||
this.$t('dialog.track.quality', {
|
||||
bitrate: this.item.bitrate,
|
||||
count: this.item.channels,
|
||||
format: this.item.type,
|
||||
@@ -79,7 +79,7 @@ export default {
|
||||
},
|
||||
{
|
||||
key: 'property.rating',
|
||||
value: this.$t('dialog.track.rating-value', {
|
||||
value: this.$t('dialog.track.rating', {
|
||||
rating: Math.floor(this.item.rating / 10)
|
||||
})
|
||||
},
|
||||
|
||||
@@ -38,7 +38,9 @@ export default {
|
||||
},
|
||||
{
|
||||
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',
|
||||
|
||||
@@ -70,15 +70,15 @@
|
||||
}
|
||||
},
|
||||
"queue-item": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
},
|
||||
"remote-pairing": {
|
||||
"pairing-code": "Pairing-Code",
|
||||
"title": "Remote-Paarungs-Anfrage"
|
||||
},
|
||||
"track": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating-value": "{rating} / 10"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating": "{rating} / 10"
|
||||
},
|
||||
"update": {
|
||||
"all": "Alles neu einlesen",
|
||||
|
||||
@@ -70,15 +70,15 @@
|
||||
}
|
||||
},
|
||||
"queue-item": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
},
|
||||
"remote-pairing": {
|
||||
"pairing-code": "Pairing code",
|
||||
"title": "Remote pairing request"
|
||||
},
|
||||
"track": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating-value": "{rating} / 10"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating": "{rating} / 10"
|
||||
},
|
||||
"update": {
|
||||
"all": "Update everything",
|
||||
|
||||
@@ -70,15 +70,15 @@
|
||||
}
|
||||
},
|
||||
"queue-item": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
},
|
||||
"remote-pairing": {
|
||||
"pairing-code": "Code de jumelage",
|
||||
"title": "Demande de jumelage de télécommande"
|
||||
},
|
||||
"track": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating-value": "{rating} / 10"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating": "{rating} / 10"
|
||||
},
|
||||
"update": {
|
||||
"all": "Tout actualiser",
|
||||
|
||||
@@ -70,15 +70,15 @@
|
||||
}
|
||||
},
|
||||
"queue-item": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
},
|
||||
"remote-pairing": {
|
||||
"pairing-code": "配对码",
|
||||
"title": "请求遥控配对"
|
||||
},
|
||||
"track": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating-value": "{rating} / 10"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating": "{rating} / 10"
|
||||
},
|
||||
"update": {
|
||||
"all": "更新所有内容",
|
||||
|
||||
@@ -70,15 +70,15 @@
|
||||
}
|
||||
},
|
||||
"queue-item": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s"
|
||||
},
|
||||
"remote-pairing": {
|
||||
"pairing-code": "配對碼",
|
||||
"title": "請求遙控配對"
|
||||
},
|
||||
"track": {
|
||||
"quality-value": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating-value": "{rating} / 10"
|
||||
"quality": "{format} {'|'} {samplerate} Hz {'|'} @:data.channels {'|'} {bitrate} kbit/s",
|
||||
"rating": "{rating} / 10"
|
||||
},
|
||||
"update": {
|
||||
"all": "更新所有內容",
|
||||
|
||||
Reference in New Issue
Block a user