Skip to content
Snippets Groups Projects
Commit 05b9582b authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix message header

parent f9ff17c9
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ import { HttpClient } from '@angular/common/http'; ...@@ -4,6 +4,7 @@ import { HttpClient } from '@angular/common/http';
import { LANG } from '../../translate.component'; import { LANG } from '../../translate.component';
import { NotificationService } from '../../notification.service'; import { NotificationService } from '../../notification.service';
import { MatSidenav } from '@angular/material'; import { MatSidenav } from '@angular/material';
import { HeaderService } from '../../../service/header.service';
declare function $j(selector: any): any; declare function $j(selector: any): any;
...@@ -16,7 +17,6 @@ declare var angularGlobals: any; ...@@ -16,7 +17,6 @@ declare var angularGlobals: any;
}) })
export class ReportsAdministrationComponent implements OnInit { export class ReportsAdministrationComponent implements OnInit {
/*HEADER*/ /*HEADER*/
titleHeader : string;
@ViewChild('snav') public sidenavLeft : MatSidenav; @ViewChild('snav') public sidenavLeft : MatSidenav;
@ViewChild('snav2') public sidenavRight : MatSidenav; @ViewChild('snav2') public sidenavRight : MatSidenav;
...@@ -33,7 +33,7 @@ export class ReportsAdministrationComponent implements OnInit { ...@@ -33,7 +33,7 @@ export class ReportsAdministrationComponent implements OnInit {
loadingOptions: boolean = false; loadingOptions: boolean = false;
constructor(changeDetectorRef: ChangeDetectorRef, media: MediaMatcher, public http: HttpClient, private notify: NotificationService) { constructor(changeDetectorRef: ChangeDetectorRef, media: MediaMatcher, public http: HttpClient, private notify: NotificationService, private headerService: HeaderService) {
$j("link[href='merged_css.php']").remove(); $j("link[href='merged_css.php']").remove();
this.mobileQuery = media.matchMedia('(max-width: 768px)'); this.mobileQuery = media.matchMedia('(max-width: 768px)');
this._mobileQueryListener = () => changeDetectorRef.detectChanges(); this._mobileQueryListener = () => changeDetectorRef.detectChanges();
...@@ -45,7 +45,7 @@ export class ReportsAdministrationComponent implements OnInit { ...@@ -45,7 +45,7 @@ export class ReportsAdministrationComponent implements OnInit {
} }
ngOnInit(): void { ngOnInit(): void {
window['MainHeaderComponent'].refreshTitle(this.lang.administration + ' ' + this.lang.reports); this.headerService.headerMessage = this.lang.administration + ' ' + this.lang.reports;
window['MainHeaderComponent'].setSnav(this.sidenavLeft); window['MainHeaderComponent'].setSnav(this.sidenavLeft);
window['MainHeaderComponent'].setSnavRight(null); window['MainHeaderComponent'].setSnavRight(null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment