[web] Change to template literals

This commit is contained in:
Alain Nussbaumer
2023-11-23 20:23:40 +01:00
parent 5cd63294a2
commit 406c87f765
13 changed files with 71 additions and 115 deletions

View File

@@ -44,7 +44,7 @@ export default {
},
alt_text() {
return this.artist + ' - ' + this.album
return `${this.artist} - ${this.album}`
},
caption() {

View File

@@ -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`
)
},

View File

@@ -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`
)
}
}

View File

@@ -231,7 +231,7 @@ export default {
search_name: {
get() {
return 'search-' + this.$store.state.search_source
return `search-${this.$store.state.search_source}`
}
},

View File

@@ -19,7 +19,7 @@ export default {
return 0
},
width_percent() {
return this.width + '%'
return `${this.width}%`
}
}
}