@@ -53,7 +53,7 @@ const store = new Vuex.Store({
53
53
mutations : {
54
54
addClass ( state , newClass ) {
55
55
state . roads [ state . activeRoad ] . contents . selectedSubjects [ newClass . semester ] . push ( newClass ) ;
56
- Vue . set ( state . roads [ state . activeRoad ] , ' changed' , moment ( ) . format ( DATE_FORMAT ) ) ;
56
+ state . roads [ state . activeRoad ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
57
57
} ,
58
58
addFromCard ( state , classItem ) {
59
59
state . addingFromCard = true ;
@@ -62,7 +62,6 @@ const store = new Vuex.Store({
62
62
addReq ( state , event ) {
63
63
state . roads [ state . activeRoad ] . contents . coursesOfStudy . push ( event ) ;
64
64
state . roads [ state . activeRoad ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
65
- Vue . set ( state . roads , state . activeRoad , state . roads [ state . activeRoad ] ) ;
66
65
state . fulfillmentNeeded = event ;
67
66
} ,
68
67
allowCookies ( state ) {
@@ -98,11 +97,11 @@ const store = new Vuex.Store({
98
97
state . roads [ state . activeRoad ] . contents . selectedSubjects [ currentClass . semester ] . splice ( classIndex , 1 ) ;
99
98
currentClass . semester = semester ;
100
99
state . roads [ state . activeRoad ] . contents . selectedSubjects [ semester ] . push ( currentClass ) ;
101
- Vue . set ( state . roads [ state . activeRoad ] , ' changed' , moment ( ) . format ( DATE_FORMAT ) ) ;
100
+ state . roads [ state . activeRoad ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
102
101
} ,
103
102
overrideWarnings ( state , payload ) {
104
103
const classIndex = state . roads [ state . activeRoad ] . contents . selectedSubjects [ payload . classInfo . semester ] . indexOf ( payload . classInfo ) ;
105
- Vue . set ( state . roads [ state . activeRoad ] . contents . selectedSubjects [ payload . classInfo . semester ] [ classIndex ] , ' overrideWarnings' , payload . override ) ;
104
+ state . roads [ state . activeRoad ] . contents . selectedSubjects [ payload . classInfo . semester ] [ classIndex ] . overrideWarnings = payload . override ;
106
105
} ,
107
106
setUnretrieved ( state , roadIDs ) {
108
107
state . unretrieved = roadIDs ;
@@ -200,12 +199,12 @@ const store = new Vuex.Store({
200
199
} ,
201
200
removeClass ( state , { classInfo, classIndex } ) {
202
201
state . roads [ state . activeRoad ] . contents . selectedSubjects [ classInfo . semester ] . splice ( classIndex , 1 ) ;
203
- Vue . set ( state . roads [ state . activeRoad ] , ' changed' , moment ( ) . format ( DATE_FORMAT ) ) ;
202
+ state . roads [ state . activeRoad ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
204
203
} ,
205
204
removeReq ( state , event ) {
206
205
const reqIndex = state . roads [ state . activeRoad ] . contents . coursesOfStudy . indexOf ( event ) ;
207
206
state . roads [ state . activeRoad ] . contents . coursesOfStudy . splice ( reqIndex , 1 ) ;
208
- Vue . set ( state . roads [ state . activeRoad ] , ' changed' , moment ( ) . format ( DATE_FORMAT ) ) ;
207
+ state . roads [ state . activeRoad ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
209
208
state . fulfillmentNeeded = 'none' ;
210
209
} ,
211
210
resetID ( state , { oldid, newid } ) {
@@ -249,8 +248,8 @@ const store = new Vuex.Store({
249
248
state . roads = roads ;
250
249
} ,
251
250
setRoadName ( state , { id, name } ) {
252
- Vue . set ( state . roads [ id ] , ' name' , name ) ;
253
- Vue . set ( state . roads [ id ] , ' changed' , moment ( ) . format ( DATE_FORMAT ) ) ;
251
+ state . roads [ id ] . name = name ;
252
+ state . roads [ id ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
254
253
} ,
255
254
setSubjectsInfo ( state , data ) {
256
255
state . subjectsInfo = data ;
@@ -260,7 +259,7 @@ const store = new Vuex.Store({
260
259
} ,
261
260
updateProgress ( state , progress ) {
262
261
Vue . set ( state . roads [ state . activeRoad ] . contents . progressOverrides , progress . listID , progress . progress ) ;
263
- Vue . set ( state . roads [ state . activeRoad ] , ' changed' , moment ( ) . format ( DATE_FORMAT ) ) ;
262
+ state . roads [ state . activeRoad ] . changed = moment ( ) . format ( DATE_FORMAT ) ;
264
263
} ,
265
264
setFromLocalStorage ( state , localStore ) {
266
265
store . replaceState ( localStore ) ;
0 commit comments