mirror of
https://github.com/koel/koel
synced 2024-12-21 01:53:11 +00:00
23 lines
498 B
JavaScript
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);
|
|
},
|
|
},
|
|
};
|