import { Component, OnInit } from '@angular/core';
import { GlobalWaitingOverlayService } from '../../../ui/infrastructure/global-waiting-overlay.service';
import {SecurityService} from '../../../logic/services/security.service';

@Component({
  selector: 'app-main',
  templateUrl: './main.component.html',
  styleUrls: ['./main.component.css']
})
export class MainComponent implements OnInit {

  _waiting = false;

  constructor(private globalWaitingOverlayService: GlobalWaitingOverlayService,
              private securityService: SecurityService) {
  }

  ngOnInit() {
    this.globalWaitingOverlayService.waiting.subscribe(waiting => {
      this._waiting = waiting;
    });
  }
}
