File tree Expand file tree Collapse file tree
src/modules/app/initialize Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ export class ConfigService {
3030
3131 protected wavesApp : any ;
3232
33- protected _instance : ConfigService | null = null ;
33+ protected static _instance : ConfigService | void ;
3434
3535 public change = new Signal ( ) as Signal < string > ;
3636
3737 public configReady : Promise < any > ;
3838
3939 constructor ( wavesApp : any ) {
40- if ( this . _instance ) {
41- return this . _instance ;
40+ if ( ConfigService . _instance ) {
41+ return ConfigService . _instance ;
4242 }
43- this . _instance = this ;
43+ ConfigService . _instance = this ;
4444 this . wavesApp = wavesApp ;
4545 this . configReady = this . fetchConfig ( ) ;
4646 }
Original file line number Diff line number Diff line change 185185 } ) ;
186186 }
187187
188- if ( configService . get ( 'DEXW_LOCKED' ) && $state . current . name !== 'migration' ) {
189- $state . go ( 'migration' ) ;
190- } else {
191- $state . go ( 'signIn' ) ;
192- }
193-
194-
195188 $rootScope . WavesApp = WavesApp ;
196189 }
197190
415408 const START_STATES = WavesApp . stateTree . where ( { noLogin : true } )
416409 . map ( ( item ) => WavesApp . stateTree . getPath ( item . id ) . join ( '.' ) ) ;
417410
418- const DEXW_LOCKED_STATES = [ 'migration' , 'signIn' ] ;
411+ const DEXW_LOCKED_STATES = [ 'migration' ] ;
419412
420413 const offInitialTransitions = $transitions . onStart ( { } , transition => {
421414 const DEXW_LOCKED = configService . get ( 'DEXW_LOCKED' ) ;
You can’t perform that action at this time.
0 commit comments