File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -43,14 +43,6 @@ ApiServlet.MOUNT_POINT = 'api';
43
43
44
44
ApiServlet . RESET_INTERNAL_STATE = {
45
45
lastModal : MODAL . none ,
46
- modalsCompleted : {
47
- welcome : SKIPSETUP ,
48
- authorize : SKIPSETUP ,
49
- proxiedSites : SKIPSETUP ,
50
- systemProxy : SKIPSETUP ,
51
- lanternFriends : SKIPSETUP ,
52
- finished : SKIPSETUP
53
- } ,
54
46
appliedScenarios : {
55
47
os : 'osx' ,
56
48
location : 'nyc' ,
@@ -69,6 +61,14 @@ ApiServlet.RESET_INTERNAL_STATE = {
69
61
70
62
ApiServlet . prototype . reset = function ( ) {
71
63
this . _internalState = _ . cloneDeep ( ApiServlet . RESET_INTERNAL_STATE ) ;
64
+ this . _internalState . modalsCompleted = {
65
+ welcome : SKIPSETUP ,
66
+ authorize : SKIPSETUP ,
67
+ proxiedSites : SKIPSETUP ,
68
+ systemProxy : SKIPSETUP ,
69
+ lanternFriends : SKIPSETUP ,
70
+ finished : SKIPSETUP
71
+ } ;
72
72
this . resetModel ( ) ;
73
73
this . model = this . _bayeuxBackend . model ;
74
74
merge ( this . model , {
@@ -519,6 +519,7 @@ ApiServlet._handlerForModal[MODAL.confirmReset] = function(interaction, res) {
519
519
if ( interaction == INTERACTION . cancel ) {
520
520
this . updateModel ( { modal : MODAL . settings } , true ) ;
521
521
} else if ( interaction == INTERACTION . reset ) {
522
+ SKIPSETUP = false ;
522
523
this . reset ( ) ;
523
524
} else {
524
525
res . writeHead ( 400 ) ;
You can’t perform that action at this time.
0 commit comments