mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-06 20:33:10 -05:00
[web] Rename formatting methods and fix dates not being internationalised
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<div
|
||||
v-if="item.item.date_released && item.item.media_kind === 'music'"
|
||||
class="is-size-7 has-text-grey"
|
||||
v-text="$filters.date(item.item.date_released)"
|
||||
v-text="$filters.toDate(item.item.date_released)"
|
||||
/>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
/>
|
||||
<div
|
||||
class="is-size-7 has-text-grey"
|
||||
v-text="$filters.date(item.release_date)"
|
||||
v-text="$filters.toDate(item.release_date)"
|
||||
/>
|
||||
</div>
|
||||
<div class="media-right">
|
||||
|
||||
@@ -55,13 +55,13 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.release-date',
|
||||
value: this.$filters.date(this.item.date_released)
|
||||
value: this.$filters.toDate(this.item.date_released)
|
||||
},
|
||||
{ label: 'property.year', value: this.item.year },
|
||||
{ label: 'property.tracks', value: this.item.track_count },
|
||||
{
|
||||
label: 'property.duration',
|
||||
value: this.$filters.durationInHours(this.item.length_ms)
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{
|
||||
label: 'property.type',
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.added-on',
|
||||
value: this.$filters.datetime(this.item.time_added)
|
||||
value: this.$filters.toDateTime(this.item.time_added)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.release-date',
|
||||
value: this.$filters.date(this.item.release_date)
|
||||
value: this.$filters.toDate(this.item.release_date)
|
||||
},
|
||||
{
|
||||
label: 'property.type',
|
||||
|
||||
@@ -28,7 +28,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.added-on',
|
||||
value: this.$filters.datetime(this.item.time_added)
|
||||
value: this.$filters.toDateTime(this.item.time_added)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.duration',
|
||||
value: this.$filters.durationInHours(this.item.length_ms)
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.duration',
|
||||
value: this.$filters.durationInHours(this.item.length_ms)
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.duration',
|
||||
value: this.$filters.durationInHours(this.item.length_ms)
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{ label: 'property.path', value: this.item.path },
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ export default {
|
||||
{ label: 'property.composer', value: this.item.composer },
|
||||
{
|
||||
label: 'property.release-date',
|
||||
value: this.$filters.date(this.item.date_released)
|
||||
value: this.$filters.toDate(this.item.date_released)
|
||||
},
|
||||
{ label: 'property.year', value: this.item.year },
|
||||
{ label: 'property.genre', value: this.item.genre },
|
||||
@@ -53,7 +53,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.duration',
|
||||
value: this.$filters.durationInHours(this.item.length_ms)
|
||||
value: this.$filters.toTimecode(this.item.length_ms)
|
||||
},
|
||||
{
|
||||
label: 'property.type',
|
||||
@@ -72,7 +72,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.added-on',
|
||||
value: this.$filters.datetime(this.item.time_added)
|
||||
value: this.$filters.toDateTime(this.item.time_added)
|
||||
},
|
||||
{
|
||||
label: 'property.rating',
|
||||
|
||||
@@ -35,7 +35,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.release-date',
|
||||
value: this.$filters.date(this.item.album.release_date)
|
||||
value: this.$filters.toDate(this.item.album.release_date)
|
||||
},
|
||||
{
|
||||
label: 'property.position',
|
||||
@@ -43,7 +43,7 @@ export default {
|
||||
},
|
||||
{
|
||||
label: 'property.duration',
|
||||
value: this.$filters.durationInHours(this.item.duration_ms)
|
||||
value: this.$filters.toTimecode(this.item.duration_ms)
|
||||
},
|
||||
{ label: 'property.path', value: this.item.uri }
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user