mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 04:42:58 -05:00
[web] Change to template literals
This commit is contained in:
@@ -44,7 +44,7 @@ export default {
|
||||
},
|
||||
|
||||
alt_text() {
|
||||
return this.artist + ' - ' + this.album
|
||||
return `${this.artist} - ${this.album}`
|
||||
},
|
||||
|
||||
caption() {
|
||||
|
||||
@@ -78,7 +78,7 @@ export default {
|
||||
play() {
|
||||
this.$emit('close')
|
||||
webapi.player_play_expression(
|
||||
'composer is "' + this.composer.name + '" and media_kind is music',
|
||||
`composer is "${this.composer.name}" and media_kind is music`,
|
||||
false
|
||||
)
|
||||
},
|
||||
@@ -86,14 +86,14 @@ export default {
|
||||
queue_add() {
|
||||
this.$emit('close')
|
||||
webapi.queue_expression_add(
|
||||
'composer is "' + this.composer.name + '" and media_kind is music'
|
||||
`composer is "${this.composer.name}" and media_kind is music`
|
||||
)
|
||||
},
|
||||
|
||||
queue_add_next() {
|
||||
this.$emit('close')
|
||||
webapi.queue_expression_add_next(
|
||||
'composer is "' + this.composer.name + '" and media_kind is music'
|
||||
`composer is "${this.composer.name}" and media_kind is music`
|
||||
)
|
||||
},
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ export default {
|
||||
play() {
|
||||
this.$emit('close')
|
||||
webapi.player_play_expression(
|
||||
'path starts with "' + this.directory + '" order by path asc',
|
||||
`path starts with "${this.directory}" order by path asc`,
|
||||
false
|
||||
)
|
||||
},
|
||||
@@ -57,14 +57,14 @@ export default {
|
||||
queue_add() {
|
||||
this.$emit('close')
|
||||
webapi.queue_expression_add(
|
||||
'path starts with "' + this.directory + '" order by path asc'
|
||||
`path starts with "${this.directory}" order by path asc`
|
||||
)
|
||||
},
|
||||
|
||||
queue_add_next() {
|
||||
this.$emit('close')
|
||||
webapi.queue_expression_add_next(
|
||||
'path starts with "' + this.directory + '" order by path asc'
|
||||
`path starts with "${this.directory}" order by path asc`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ export default {
|
||||
|
||||
search_name: {
|
||||
get() {
|
||||
return 'search-' + this.$store.state.search_source
|
||||
return `search-${this.$store.state.search_source}`
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ export default {
|
||||
return 0
|
||||
},
|
||||
width_percent() {
|
||||
return this.width + '%'
|
||||
return `${this.width}%`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user