fixed settings nav item not retaining active class when in other tabs in the settings page

pull/2197/head
Anojh 7 years ago
parent f1320c16de
commit ff0ad91a96

@ -72,7 +72,7 @@
<ul class="nav navbar-nav navbar-right">
<li *ngIf="hasRole('Admin') " [routerLinkActive]="['active']">
<li *ngIf="hasRole('Admin') " id="settings" [routerLinkActive]="['active']">
<a [routerLink]="['/Settings/About']">
<i *ngIf="!updateAvailable" class="fa fa-cog"></i>

@ -7,4 +7,11 @@ export class SettingsMenuComponent {
public ignore(event: any): void {
event.preventDefault();
}
public ngOnInit() {
var element = document.getElementById("settings");
if (element != null) {
element.classList.add("active");
}
}
}

Loading…
Cancel
Save