File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed
packages/selenium-ide/src/neo/stores Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -204,6 +204,17 @@ export default class ProjectStore {
204
204
}
205
205
}
206
206
207
+ @action . bound
208
+ saved ( ) {
209
+ this . _tests . forEach ( test => {
210
+ test . modified = false
211
+ } )
212
+ this . _suites . forEach ( test => {
213
+ test . modified = false
214
+ } )
215
+ this . setModified ( false )
216
+ }
217
+
207
218
@action . bound
208
219
fromJS ( jsRep ) {
209
220
this . name = jsRep . name
@@ -219,7 +230,7 @@ export default class ProjectStore {
219
230
this . plugins . replace ( jsRep . plugins )
220
231
this . version = jsRep . version
221
232
this . id = jsRep . id || uuidv4 ( )
222
- this . setModified ( false )
233
+ this . saved ( )
223
234
}
224
235
225
236
dispose ( ) {
Original file line number Diff line number Diff line change @@ -520,6 +520,7 @@ class UiState {
520
520
this . suiteStates = { }
521
521
this . selectTest ( this . _project . tests [ 0 ] )
522
522
WindowSession . closeAllOpenedWindows ( )
523
+ this . saved ( )
523
524
}
524
525
525
526
isSaved ( ) {
@@ -528,13 +529,7 @@ class UiState {
528
529
529
530
@action . bound
530
531
saved ( ) {
531
- this . _project . _tests . forEach ( test => {
532
- test . modified = false
533
- } )
534
- this . _project . _suites . forEach ( test => {
535
- test . modified = false
536
- } )
537
- this . _project . setModified ( false )
532
+ this . _project . saved ( )
538
533
}
539
534
}
540
535
You can’t perform that action at this time.
0 commit comments