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