2016-05-30 08:04:22 +00:00
|
|
|
/**
|
|
|
|
* 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';
|
|
|
|
|
2016-05-30 08:04:22 +00:00
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
/**
|
|
|
|
* Load the album details screen.
|
|
|
|
*/
|
|
|
|
viewAlbumDetails(album) {
|
2016-06-25 05:24:55 +00:00
|
|
|
loadAlbumView(album);
|
2016-05-30 08:04:22 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Load the artist details screen.
|
|
|
|
*/
|
|
|
|
viewArtistDetails(artist) {
|
2016-06-25 05:24:55 +00:00
|
|
|
loadArtistView(artist);
|
2016-05-30 08:04:22 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|