Adding a third connection state and preventing offline indicator from pushing the menu.

This commit is contained in:
softsimon
2020-03-09 17:53:54 +07:00
parent 994c42440d
commit 2296ad69b9
7 changed files with 40 additions and 17 deletions

View File

@@ -8,16 +8,16 @@ import { StateService } from '../../services/state.service';
})
export class MasterPageComponent implements OnInit {
navCollapsed = false;
isOffline = false;
connectionState = 2;
constructor(
private stateService: StateService,
) { }
ngOnInit() {
this.stateService.isOffline$
this.stateService.connectionState$
.subscribe((state) => {
this.isOffline = state;
this.connectionState = state;
});
}