mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 10:13:45 -04:00
[web] Streamline code between pages
This commit is contained in:
parent
408ac7e8c2
commit
e89d625f15
@ -103,13 +103,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
methods: {
|
||||||
artwork_url(album) {
|
artwork_url(album) {
|
||||||
return album.images?.[0]?.url || ''
|
return album.images?.[0]?.url || ''
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
play() {
|
play() {
|
||||||
this.$emit('close')
|
this.$emit('close')
|
||||||
webapi.player_play_uri(this.album.uri, false)
|
webapi.player_play_uri(this.album.uri, false)
|
||||||
|
@ -128,13 +128,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
methods: {
|
||||||
artwork_url(album) {
|
artwork_url(album) {
|
||||||
return album.images?.[0]?.url || ''
|
return album.images?.[0]?.url || ''
|
||||||
}
|
},
|
||||||
},
|
|
||||||
|
|
||||||
methods: {
|
|
||||||
open_artist() {
|
open_artist() {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
name: 'music-spotify-artist',
|
name: 'music-spotify-artist',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user