Skip to content
Snippets Groups Projects
Commit ec35a720 authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #12091 TIME 0:10 removed home icon

parent c64e790a
No related branches found
No related tags found
No related merge requests found
<div class="panelHeader"> <div class="panelHeader">
<div *ngIf="navButton !== null" class="panelHeader-backHome"> <div *ngIf="navButton !== null" class="panelHeader-backHome">
<button mat-button style="padding-top: 5px;padding-bottom: 5px;" (click)="gotTo()"> <button mat-button style="padding-top: 5px;padding-bottom: 5px;" (click)="goTo()">
<i class="{{navButton.icon}}" style="height: auto"></i>&nbsp; <i class="{{navButton.icon}}" style="height: auto"></i>&nbsp;
<span>{{navButton.label}}</span> <span>{{navButton.label}}</span>
</button> </button>
</div> </div>
<div class="panelHeader-logo" [class.text-center]="navButton !== null"> <div class="panelHeader-logo" [class.text-center]="navButton !== null">
<a href="#" title="{{lang.home}}" style="margin-right: 30px;"> <button mat-button style="margin-right: 30px;" (click)="goToHome()" title="{{lang.home}}">
<mat-icon class="maarchLogo" svgIcon="maarchLogoFull"></mat-icon> <mat-icon class="maarchLogo" svgIcon="maarchLogoFull"></mat-icon>
</a> </button>
</div> </div>
<div class="panelHeader-button"> <div class="panelHeader-button">
<button mat-icon-button (click)="snavLeft.close()"> <button mat-icon-button (click)="snavLeft.close()">
......
...@@ -19,7 +19,7 @@ export class HeaderPanelComponent implements OnInit { ...@@ -19,7 +19,7 @@ export class HeaderPanelComponent implements OnInit {
config : any = {}; config : any = {};
@Input('navButton') navButton: any = {icon: 'fa fa-home', route : '/home'}; @Input('navButton') navButton: any = null;
@Input('snavLeft') snavLeft: MatSidenav; @Input('snavLeft') snavLeft: MatSidenav;
constructor( constructor(
...@@ -30,7 +30,11 @@ export class HeaderPanelComponent implements OnInit { ...@@ -30,7 +30,11 @@ export class HeaderPanelComponent implements OnInit {
ngOnInit(): void { } ngOnInit(): void { }
gotTo() { goTo() {
this.router.navigate([this.navButton.route]); this.router.navigate([this.navButton.route]);
} }
goToHome() {
this.router.navigate(['#']);
}
} }
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