mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-11 06:20:17 -05:00
[web] Change to template literals
This commit is contained in:
@@ -105,7 +105,7 @@ export default {
|
||||
|
||||
play() {
|
||||
webapi.player_play_expression(
|
||||
'composer is "' + this.composer.name + '" and media_kind is music',
|
||||
`composer is "${this.composer.name}" and media_kind is music`,
|
||||
true
|
||||
)
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
|
||||
computed: {
|
||||
expression() {
|
||||
return 'composer is "' + this.composer.name + '" and media_kind is music'
|
||||
return `composer is "${this.composer.name}" and media_kind is music`
|
||||
},
|
||||
selected_groupby_option_id: {
|
||||
get() {
|
||||
|
||||
@@ -110,9 +110,7 @@ export default {
|
||||
},
|
||||
|
||||
play_expression() {
|
||||
return (
|
||||
'path starts with "' + this.current_directory + '" order by path asc'
|
||||
)
|
||||
return `path starts with "${this.current_directory}" order by path asc`
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -430,12 +430,7 @@ export default {
|
||||
if (query.query.startsWith('query:')) {
|
||||
searchParams.expression = query.query.replace(/^query:/, '').trim()
|
||||
} else {
|
||||
searchParams.expression =
|
||||
'((album includes "' +
|
||||
query.query +
|
||||
'" or artist includes "' +
|
||||
query.query +
|
||||
'") and media_kind is audiobook)'
|
||||
searchParams.expression = `((album includes "${query.query}" or artist includes "${query.query}") and media_kind is audiobook)`
|
||||
}
|
||||
|
||||
if (query.limit) {
|
||||
@@ -461,12 +456,7 @@ export default {
|
||||
if (query.query.startsWith('query:')) {
|
||||
searchParams.expression = query.query.replace(/^query:/, '').trim()
|
||||
} else {
|
||||
searchParams.expression =
|
||||
'((album includes "' +
|
||||
query.query +
|
||||
'" or artist includes "' +
|
||||
query.query +
|
||||
'") and media_kind is podcast)'
|
||||
searchParams.expression = `((album includes "${query.query}" or artist includes "${query.query}") and media_kind is podcast)`
|
||||
}
|
||||
|
||||
if (query.limit) {
|
||||
|
||||
Reference in New Issue
Block a user