|
@@ -210,6 +210,8 @@ const modules = {
|
|
editPlaylist: ({ commit }, id) => commit("editPlaylist", id),
|
|
editPlaylist: ({ commit }, id) => commit("editPlaylist", id),
|
|
setPlaylists: ({ commit }, playlists) =>
|
|
setPlaylists: ({ commit }, playlists) =>
|
|
commit("setPlaylists", playlists),
|
|
commit("setPlaylists", playlists),
|
|
|
|
+ updatePlaylists: ({ commit }, playlists) =>
|
|
|
|
+ commit("updatePlaylists", playlists),
|
|
addPlaylist: ({ commit }, playlist) =>
|
|
addPlaylist: ({ commit }, playlist) =>
|
|
commit("addPlaylist", playlist),
|
|
commit("addPlaylist", playlist),
|
|
removePlaylist: ({ commit }, playlistId) =>
|
|
removePlaylist: ({ commit }, playlistId) =>
|
|
@@ -223,6 +225,9 @@ const modules = {
|
|
state.fetchedPlaylists = true;
|
|
state.fetchedPlaylists = true;
|
|
state.playlists = playlists;
|
|
state.playlists = playlists;
|
|
},
|
|
},
|
|
|
|
+ updatePlaylists(state, playlists) {
|
|
|
|
+ state.playlists = playlists;
|
|
|
|
+ },
|
|
addPlaylist(state, playlist) {
|
|
addPlaylist(state, playlist) {
|
|
state.playlists.push(playlist);
|
|
state.playlists.push(playlist);
|
|
},
|
|
},
|