11import { Component , NgZone , OnDestroy , OnInit , Renderer2 } from '@angular/core' ;
2- import { HttpClient } from '@angular/common/http' ;
32import { TranslateService } from '@ngx-translate/core' ;
43import { BackendService , Commands } from '@api/services/backend.service' ;
54import { Router } from '@angular/router' ;
@@ -24,35 +23,7 @@ import { AliasInfo } from '@api/models/alias.model';
2423
2524@Component ( {
2625 selector : 'app-root' ,
27- template : `
28- <router-outlet
29- *ngIf="[0, 1, 2, 6].indexOf(variablesService.daemon_state) !== -1 && !(zanoLoadersService.getState('fullScreen') | async)"
30- ></router-outlet>
31-
32- <div *ngIf="[3, 4, 5].indexOf(variablesService.daemon_state) !== -1" class="preloader">
33- <p *ngIf="variablesService.daemon_state === 3" class="mb-2">
34- {{ 'SIDEBAR.SYNCHRONIZATION.LOADING' | translate }}
35- </p>
36- <p *ngIf="variablesService.daemon_state === 4" class="mb-2">
37- {{ 'SIDEBAR.SYNCHRONIZATION.ERROR' | translate }}
38- </p>
39- <p *ngIf="variablesService.daemon_state === 5" class="mb-2">
40- {{ 'SIDEBAR.SYNCHRONIZATION.COMPLETE' | translate }}
41- </p>
42- <div class="loading-bar"></div>
43- </div>
44-
45- <div class="preloader" *ngIf="zanoLoadersService.getState('fullScreen') | async">
46- <p class="mb-2">
47- {{ zanoLoadersService.getMessage('fullScreen') | async | translate }}
48- </p>
49- <div class="loading-bar"></div>
50- </div>
51-
52- <app-register-context-templates></app-register-context-templates>
53-
54- <app-open-wallet-modal *ngIf="needOpenWallets.length" [wallets]="needOpenWallets"></app-open-wallet-modal>
55- ` ,
26+ templateUrl : './app.component.html' ,
5627} )
5728export class AppComponent implements OnInit , OnDestroy {
5829 intervalUpdateContractsState ;
@@ -82,7 +53,6 @@ export class AppComponent implements OnInit, OnDestroy {
8253 constructor (
8354 public variablesService : VariablesService ,
8455 public translate : TranslateService ,
85- private http : HttpClient ,
8656 private renderer : Renderer2 ,
8757 private backendService : BackendService ,
8858 private router : Router ,
@@ -118,7 +88,7 @@ export class AppComponent implements OnInit, OnDestroy {
11888 ] ;
11989 this . backendService . setBackendLocalization ( stringsArray , this . variablesService . settings . language ) ;
12090 } else {
121- console . warn ( 'wait translate use ' ) ;
91+ console . warn ( 'Wait Translate Use ' ) ;
12292 setTimeout ( ( ) => {
12393 this . setBackendLocalization ( ) ;
12494 } , 10000 ) ;
0 commit comments