|
@@ -109,6 +109,8 @@ const modules = {
|
|
|
actions: {
|
|
|
editStation: ({ commit }, station) =>
|
|
|
commit("editStation", station),
|
|
|
+ loadStations: ({ commit }, stations) =>
|
|
|
+ commit("loadStations", stations),
|
|
|
stationRemoved: ({ commit }, stationId) =>
|
|
|
commit("stationRemoved", stationId),
|
|
|
stationAdded: ({ commit }, station) =>
|
|
@@ -119,6 +121,9 @@ const modules = {
|
|
|
state.station = station;
|
|
|
state.editing = JSON.parse(JSON.stringify(station));
|
|
|
},
|
|
|
+ loadStations(state, stations) {
|
|
|
+ state.stations = stations;
|
|
|
+ },
|
|
|
stationAdded(state, station) {
|
|
|
state.stations.push(station);
|
|
|
},
|