mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
fixed settings nav item not retaining active class when in other tabs in the settings page
This commit is contained in:
parent
f1320c16de
commit
ff0ad91a96
2 changed files with 8 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue