Skip to content

Commit

Permalink
Minor corrections in the menu (#1631)
Browse files Browse the repository at this point in the history
- Adding Logs to the menu.
- Change the name from Settings to Config Ui Settings
- Small change of order.
  • Loading branch information
mkz212 authored Nov 7, 2023
1 parent e39be08 commit a7e8f54
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions ui/src/app/shared/layout/layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,26 @@
*ngIf="$settings.env.enableTerminalAccess && $auth.user.admin" routerLink="/platform-tools/terminal">
{{ 'menu.linux.label_terminal' | translate }}
</a>
<a class="dropdown-item waves-effect waves-light"
*ngIf="$auth.user.admin" routerLink="/logs">
{{ 'menu.linux.label_logs' | translate }}
</a>
<div class="dropdown-divider" *ngIf="$auth.user.admin"></div>
<a class="dropdown-item waves-effect waves-light" routerLink="/settings" *ngIf="$auth.user.admin">
Homebridge {{ 'menu.docker.label_settings' | translate }}
</a>
<a href="javascript:void(0)" class="dropdown-item waves-effect waves-light" (click)="openUiSettings()"
*ngIf="$auth.user.admin">
UI {{ 'menu.label_ui_settings' | translate }}
</a>
<a href="javascript:void(0)" class="dropdown-item waves-effect waves-light"
(click)="backupRestoreHomebridge()" *ngIf="$auth.user.admin">
{{ 'backup.title_backup_restore' | translate }}
</a>
<a class="dropdown-item waves-effect waves-light" routerLink="/users" *ngIf=" $auth.user.admin">
{{'menu.tooltip_user_accounts' | translate}}
</a>
<div class="dropdown-divider" *ngIf="$auth.user.admin"></div>
<a class="dropdown-item waves-effect waves-light" routerLink="/platform-tools/docker/startup-script"
*ngIf="$settings.env.runningInDocker && $auth.user.admin">
{{ 'menu.docker.label_startup_script' | translate }}
Expand All @@ -78,23 +98,6 @@
*ngIf="$settings.env.canShutdownRestartHost && $auth.user.admin" (click)="shutdownServer()">
{{ 'menu.linux.label_shutdown_server' | translate }}
</a>
<div class="dropdown-divider"
*ngIf="$auth.user.admin && ($settings.env.runningInDocker || $settings.env.canShutdownRestartHost)"></div>
<a class="dropdown-item waves-effect waves-light" routerLink="/settings" *ngIf="$auth.user.admin">
Homebridge {{ 'menu.docker.label_settings' | translate }}
</a>
<a href="javascript:void(0)" class="dropdown-item waves-effect waves-light"
(click)="backupRestoreHomebridge()" *ngIf="$auth.user.admin">
{{ 'backup.title_backup_restore' | translate }}
</a>
<div class="dropdown-divider" *ngIf="$auth.user.admin"></div>
<a href="javascript:void(0)" class="dropdown-item waves-effect waves-light" (click)="openUiSettings()"
*ngIf="$auth.user.admin">
{{ 'menu.label_ui_settings' | translate }}
</a>
<a class="dropdown-item waves-effect waves-light" routerLink="/users" *ngIf=" $auth.user.admin">
{{'menu.tooltip_user_accounts' | translate}}
</a>
<a href="javascript:void(0)" class="dropdown-item" (click)="$auth.logout()" *ngIf="$settings.formAuth">
{{ 'menu.tooltip_logout' | translate }}
</a>
Expand All @@ -111,4 +114,4 @@
<div class="w-100">
<router-outlet></router-outlet>
</div>
</div>
</div>

0 comments on commit a7e8f54

Please sign in to comment.