Skip to content

Commit

Permalink
Update layout.component.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mkz212 authored Nov 10, 2023
1 parent f5e82ae commit ce7c81b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ui/src/app/shared/layout/layout.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,17 @@
<i class="fas fa-fw fa-wave-square nav-menu-icon"></i>
</a>
</li>
<li class="nav-item waves-effect waves-light" routerLinkActive="active" placement="bottom"
<li *ngIf="$settings.env.runningInDocker && $auth.user.admin"
class="nav-item waves-effect waves-light" routerLinkActive="active" placement="bottom"
ngbTooltip="{{ 'menu.docker.label_restart_container' | translate }}" container="body">
<a class="nav-link" routerLink="/platform-tools/docker/restart-container" aria-label="Restart Container">
<i #restartHomebridgeIcon class="fas fa-fw fa-power-off nav-menu-icon"></i>
</a>
</li>
<li *ngIf="$settings.env.canShutdownRestartHost && $auth.user.admin"
class="nav-item waves-effect waves-light" routerLinkActive="active" placement="bottom"
ngbTooltip="{{'menu.tooltip_restart' | translate}}" container="body">
<a class="nav-link" routerLink="/restart" aria-label="Restart Homebridge">
<a class="nav-link" href="javascript:void(0)" (click)="restartServer()" aria-label="Restart Homebridge">
<i #restartHomebridgeIcon class="fas fa-fw fa-power-off nav-menu-icon"></i>
</a>
</li>
Expand Down Expand Up @@ -113,4 +121,4 @@
<div class="w-100">
<router-outlet></router-outlet>
</div>
</div>
</div>

0 comments on commit ce7c81b

Please sign in to comment.