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

24 lines
442 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 {
2016-06-25 16:05:24 +00:00
methods: {
/**
* Load the album details screen.
*/
viewAlbumDetails(album) {
loadAlbumView(album);
},
2016-06-25 16:05:24 +00:00
/**
* Load the artist details screen.
*/
viewArtistDetails(artist) {
loadArtistView(artist);
},
2016-06-25 16:05:24 +00:00
},
};