Fix linting
This commit is contained in:
		
							parent
							
								
									f6caed3ffd
								
							
						
					
					
						commit
						5a0c809fa7
					
				@ -22,7 +22,7 @@ export class GlobalFooterComponent implements OnInit {
 | 
				
			|||||||
  urlLanguage: string;
 | 
					  urlLanguage: string;
 | 
				
			||||||
  network$: Observable<string>;
 | 
					  network$: Observable<string>;
 | 
				
			||||||
  networkPaths: { [network: string]: string };
 | 
					  networkPaths: { [network: string]: string };
 | 
				
			||||||
  currentNetwork = "";
 | 
					  currentNetwork = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(
 | 
					  constructor(
 | 
				
			||||||
    public stateService: StateService,
 | 
					    public stateService: StateService,
 | 
				
			||||||
@ -45,19 +45,23 @@ export class GlobalFooterComponent implements OnInit {
 | 
				
			|||||||
    this.network$.pipe(takeUntil(this.destroy$)).subscribe((network) => {
 | 
					    this.network$.pipe(takeUntil(this.destroy$)).subscribe((network) => {
 | 
				
			||||||
      this.currentNetwork = network;
 | 
					      this.currentNetwork = network;
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    console.log(this.networkPaths);
 | 
					 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  networkLink( network ) {
 | 
					  ngOnDestroy(): void {
 | 
				
			||||||
    let thisNetwork = network || "mainnet";
 | 
					    this.destroy$.next(true);
 | 
				
			||||||
    if( network === "" || network === "mainnet" || network === "testnet" || network === "signet" ) {
 | 
					    this.destroy$.complete();
 | 
				
			||||||
      return ( this.env.BASE_MODULE === 'mempool' ? "" : this.env.MEMPOOL_WEBSITE_URL + this.urlLanguage ) + this.networkPaths[thisNetwork] || '/';
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  networkLink(network) {
 | 
				
			||||||
 | 
					    const thisNetwork = network || 'mainnet';
 | 
				
			||||||
 | 
					    if( network === '' || network === 'mainnet' || network === 'testnet' || network === 'signet' ) {
 | 
				
			||||||
 | 
					      return (this.env.BASE_MODULE === 'mempool' ? '' : this.env.MEMPOOL_WEBSITE_URL + this.urlLanguage) + this.networkPaths[thisNetwork] || '/';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if( network === "liquid" || network === "liquidtestnet" ) {
 | 
					    if( network === 'liquid' || network === 'liquidtestnet' ) {
 | 
				
			||||||
      return ( this.env.BASE_MODULE === 'liquid' ? "" : this.env.LIQUID_WEBSITE_URL + this.urlLanguage ) + this.networkPaths[thisNetwork] || '/';
 | 
					      return (this.env.BASE_MODULE === 'liquid' ? '' : this.env.LIQUID_WEBSITE_URL + this.urlLanguage) + this.networkPaths[thisNetwork] || '/';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if( network === "bisq" ) {
 | 
					    if( network === 'bisq' ) {
 | 
				
			||||||
      return ( this.env.BASE_MODULE === 'bisq' ? "" : this.env.BISQ_WEBSITE_URL + this.urlLanguage ) + this.networkPaths[thisNetwork] || '/';
 | 
					      return (this.env.BASE_MODULE === 'bisq' ? '' : this.env.BISQ_WEBSITE_URL + this.urlLanguage) + this.networkPaths[thisNetwork] || '/';
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user