koel/resources/assets/js/mixins/artist-album-details.js
2016-06-25 16:21:39 +08:00

23 lines
498 B
JavaScript

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