koel/resources/assets/js/mixins/artist-album-details.js

21 lines
451 B
JavaScript

/**
* Add necessary functionalities into a view that triggers artist or album details views.
*/
export default {
methods: {
/**
* Load the album details screen.
*/
viewAlbumDetails(album) {
this.$root.loadAlbum(album);
},
/**
* Load the artist details screen.
*/
viewArtistDetails(artist) {
this.$root.loadArtist(artist);
},
},
};