implement token exp
This commit is contained in:
@@ -4,6 +4,7 @@ import { TableApiService } from 'src/app/_services/table-api.service';
|
||||
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
||||
import { Router } from '@angular/router';
|
||||
import { BuildingService } from '../../service/monitoring-api.service';
|
||||
import { LoginService } from '../../service/login.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-master-floor',
|
||||
@@ -22,10 +23,12 @@ export class MasterFloorComponent {
|
||||
private tableApiservice: TableApiService,
|
||||
private modalService: NgbModal,
|
||||
private router: Router,
|
||||
private monitoringApiService: BuildingService
|
||||
private monitoringApiService: BuildingService,
|
||||
private authService: LoginService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.authService.checkTokenAndRedirect();
|
||||
this.breadcrumb = {
|
||||
mainlabel: "Master Floor",
|
||||
links: [
|
||||
|
||||
Reference in New Issue
Block a user