diff --git a/apps/maarch_entreprise/Views/menuNav.component.html b/apps/maarch_entreprise/Views/menuNav.component.html index 69d89c37f115a4c7d23c73d037eee17ad8a38219..87e9082db7481541de361c9bc10ffe4856c354c7 100644 --- a/apps/maarch_entreprise/Views/menuNav.component.html +++ b/apps/maarch_entreprise/Views/menuNav.component.html @@ -12,7 +12,7 @@ {{lang.administration}} </p> </a> - <a mat-list-item (click)="backClicked()"> + <a mat-list-item (click)="backClicked()" *ngIf="router.url != '/administration'"> <mat-icon color="primary" mat-list-icon class="fa fa-chevron-left"></mat-icon> <p mat-line> {{lang.back}} diff --git a/apps/maarch_entreprise/js/angular/app/menu/menu-nav.component.ts b/apps/maarch_entreprise/js/angular/app/menu/menu-nav.component.ts index 9e1730c96e988b11415a5821762df40d95f9cdc5..ccf7e61099d87c6ce20460122ef8012b341f763b 100644 --- a/apps/maarch_entreprise/js/angular/app/menu/menu-nav.component.ts +++ b/apps/maarch_entreprise/js/angular/app/menu/menu-nav.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; import { HttpClient } from '@angular/common/http'; import {Location} from '@angular/common'; import { LANG } from '../translate.component'; @@ -16,11 +17,13 @@ export class MenuNavComponent implements OnInit { lang: any = LANG; coreUrl : string; + router :any; - constructor(public http: HttpClient, private _location: Location) { + constructor(public http: HttpClient, private _location: Location, private _router: Router) { + this.router = _router; } - ngOnInit(): void { + ngOnInit(): void { this.coreUrl = angularGlobals.coreUrl; }