don't reload random covers
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Artem Anufrij 2023-09-27 22:13:10 +02:00
parent d0b4590664
commit a9d705298a

View File

@ -112,10 +112,11 @@ export default {
this.$store.dispatch("boxes/loadNewest"); this.$store.dispatch("boxes/loadNewest");
this.$store.dispatch("tracks/loadMostListened"); this.$store.dispatch("tracks/loadMostListened");
this.$store.dispatch("videos/loadMostViewed"); this.$store.dispatch("videos/loadMostViewed");
if (this.randomCovers.length == 0) {
this.$store.dispatch("albums/loadRandomCovers", 48); this.$store.dispatch("albums/loadRandomCovers", 48);
this.$store.dispatch("albums/loadAlbums", true); this.$store.dispatch("albums/loadAlbums", true);
this.$store.dispatch("artists/loadArtists", true); this.$store.dispatch("artists/loadArtists", true);
}
}, },
loadNextPage() { loadNextPage() {
this.scrollPosition = this.$refs.welcome.scrollTop; this.scrollPosition = this.$refs.welcome.scrollTop;