enable status view for liquid and testnet
This commit is contained in:
		
							parent
							
								
									2aca447f9e
								
							
						
					
					
						commit
						f5260b72e5
					
				@ -219,6 +219,14 @@ const routes: Routes = [
 | 
			
		||||
    path: 'status-view',
 | 
			
		||||
    component: StatusViewComponent
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path: 'liquid-status-view',
 | 
			
		||||
    component: StatusViewComponent
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path: 'testnet-status-view',
 | 
			
		||||
    component: StatusViewComponent
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    path: '**',
 | 
			
		||||
    redirectTo: ''
 | 
			
		||||
 | 
			
		||||
@ -54,6 +54,7 @@ export class StateService {
 | 
			
		||||
    switch (url.split('/')[1]) {
 | 
			
		||||
      case 'liquid':
 | 
			
		||||
      case 'liquid-tv':
 | 
			
		||||
      case 'liquid-status-view':
 | 
			
		||||
        if (this.network !== 'liquid') {
 | 
			
		||||
          this.network = 'liquid';
 | 
			
		||||
          this.networkChanged$.next('liquid');
 | 
			
		||||
@ -61,6 +62,7 @@ export class StateService {
 | 
			
		||||
        return;
 | 
			
		||||
      case 'testnet':
 | 
			
		||||
      case 'testnet-tv':
 | 
			
		||||
      case 'testnet-status-view':
 | 
			
		||||
        if (this.network !== 'testnet') {
 | 
			
		||||
          this.network = 'testnet';
 | 
			
		||||
          this.networkChanged$.next('testnet');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user