|
@@ -10,6 +10,7 @@ const state = {
|
|
|
loggedOut: []
|
|
|
},
|
|
|
currentSong: {},
|
|
|
+ previousSong: null,
|
|
|
nextSong: null,
|
|
|
songsList: [],
|
|
|
stationPaused: true,
|
|
@@ -40,6 +41,9 @@ const actions = {
|
|
|
updateCurrentSong: ({ commit }, currentSong) => {
|
|
|
commit("updateCurrentSong", currentSong);
|
|
|
},
|
|
|
+ updatePreviousSong: ({ commit }, previousSong) => {
|
|
|
+ commit("updatePreviousSong", previousSong);
|
|
|
+ },
|
|
|
updateNextSong: ({ commit }, nextSong) => {
|
|
|
commit("updateNextSong", nextSong);
|
|
|
},
|
|
@@ -98,6 +102,7 @@ const mutations = {
|
|
|
loggedOut: []
|
|
|
};
|
|
|
state.currentSong = {};
|
|
|
+ state.previousSong = null;
|
|
|
state.nextSong = null;
|
|
|
state.songsList = [];
|
|
|
state.stationPaused = true;
|
|
@@ -118,6 +123,9 @@ const mutations = {
|
|
|
updateCurrentSong(state, currentSong) {
|
|
|
state.currentSong = currentSong;
|
|
|
},
|
|
|
+ updatePreviousSong(state, previousSong) {
|
|
|
+ state.previousSong = previousSong;
|
|
|
+ },
|
|
|
updateNextSong(state, nextSong) {
|
|
|
state.nextSong = nextSong;
|
|
|
},
|