feat: global storage of the settings

This commit is contained in:
Roberto Tonino
2020-08-24 21:30:54 +02:00
parent 9425569879
commit 4b5c10ef3e
6 changed files with 96 additions and 58 deletions

View File

@@ -104,10 +104,10 @@ export default {
this.playlists = playlistData
this.albums = albumData
},
// ! Define this functionality as a Vue Mixin
checkIfWaitData(data) {
if (this.needToWait) {
// This case verifies only at the first load, beacuse the data retrieving is not completed yet
// ! Define this functionality as a Vue Mixin
let unsub = this.$store.subscribeAction({
after: (action, state) => {
if (action.type === 'cacheHomeData') {