mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05: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) {
|
||||
return album.images?.[0]?.url || ''
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
play() {
|
||||
this.$emit('close')
|
||||
webapi.player_play_uri(this.album.uri, false)
|
||||
|
@ -128,13 +128,11 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
methods: {
|
||||
artwork_url(album) {
|
||||
return album.images?.[0]?.url || ''
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
open_artist() {
|
||||
this.$router.push({
|
||||
name: 'music-spotify-artist',
|
||||
|
Loading…
Reference in New Issue
Block a user