recently added is now updated with add to library

This commit is contained in:
booploops 2022-06-16 21:50:44 -07:00
parent a5e6b64f24
commit 75bc3cd4f9
2 changed files with 6 additions and 0 deletions

View file

@ -2458,6 +2458,7 @@ const app = new Vue({
let library = []
let cacheId = "library-songs"
let downloaded = null;
this.$store.commit("resetRecentlyAdded")
if ((this.library.songs.downloadState == 2) && !force) {
return
}

View file

@ -19,6 +19,11 @@ const store = new Vuex.Store({
}
},
mutations: {
resetRecentlyAdded(state) {
state.pageState.recentlyAdded.loaded = false;
state.pageState.recentlyAdded.nextUrl = null;
state.pageState.recentlyAdded.items = [];
},
setLCDArtwork(state, artwork) {
state.artwork.playerLCD = artwork
}