2021-03-13 18:24:50 +07:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
2021-07-28 22:32:13 +03:00
|
|
|
import { Env, StateService } from '../../services/state.service';
|
2021-03-21 02:40:37 +07:00
|
|
|
import { Observable } from 'rxjs';
|
2021-03-13 18:24:50 +07:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-bisq-master-page',
|
|
|
|
templateUrl: './bisq-master-page.component.html',
|
|
|
|
styleUrls: ['./bisq-master-page.component.scss'],
|
|
|
|
})
|
|
|
|
export class BisqMasterPageComponent implements OnInit {
|
|
|
|
connectionState$: Observable<number>;
|
|
|
|
navCollapsed = false;
|
2021-07-28 22:32:13 +03:00
|
|
|
env: Env;
|
2021-03-13 18:24:50 +07:00
|
|
|
|
|
|
|
constructor(
|
|
|
|
private stateService: StateService,
|
|
|
|
) { }
|
|
|
|
|
|
|
|
ngOnInit() {
|
2021-07-28 22:32:13 +03:00
|
|
|
this.env = this.stateService.env;
|
2021-03-13 18:24:50 +07:00
|
|
|
this.connectionState$ = this.stateService.connectionState$;
|
|
|
|
}
|
|
|
|
|
|
|
|
collapse(): void {
|
|
|
|
this.navCollapsed = !this.navCollapsed;
|
|
|
|
}
|
|
|
|
}
|