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

24 lines
498 B
JavaScript
Raw Normal View History

/**
* Add necessary functionalities into a view that triggers artist or album details views.
*/
2016-06-25 05:24:55 +00:00
import { loadAlbumView, loadArtistView } from './../utils';
export default {
methods: {
/**
* Load the album details screen.
*/
viewAlbumDetails(album) {
2016-06-25 05:24:55 +00:00
loadAlbumView(album);
},
/**
* Load the artist details screen.
*/
viewArtistDetails(artist) {
2016-06-25 05:24:55 +00:00
loadArtistView(artist);
},
},
};