Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
1 |
File Content
import { Component, OnInit, Input, OnDestroy } from '@angular/core';
import { AuthenticationService } from '../../auth/auth.service';
import { EwvViewerService } from '../../ewv/ewv-viewer/ewv-viewer.service';
import { Subscription } from 'rxjs/Subscription';
@Component({
selector: 'app-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss']
})
export class HeaderComponent implements OnInit, OnDestroy {
constructor(
private authenticationService: AuthenticationService,
private ewvViewerService: EwvViewerService
) {}
isSplitView: boolean;
isSplitSubscription = new Subscription();
@Input()
tabIdx = '0';
@Input()
containerClassWidth = 1284;
userName =
AI
;
ngOnInit() {
this.userName = this.authenticationService.getDecodedUserInfo().userName;
this.isSplitSubscription = this.ewvViewerService.isSplitView.subscribe(
data => (this.isSplitView = data)
);
}
logout() {
this.authenticationService.logout();
}
ngOnDestroy() {
this.isSplitSubscription.unsubscribe();
}
}