blob: 9484272231c0648534321b8fe2c883bceceb8afb [file] [log] [blame]
<!-------------------------------------------------------------------------------
* Copyright (c) 2020 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
-------------------------------------------------------------------------------->
<ng-container *ngIf="buttonLayout?.length > 0">
<ng-container *appSideMenu="'top'; title: 'details.sideMenu.title' | translate">
<app-action-button
[appIcon]="'home'"
[appRouterLink]="'/'"
[appDisabled]="appLoading"
class="side-menu-button openk-info">
{{'details.sideMenu.backToDashboard' | translate}}
</app-action-button>
</ng-container>
<ng-container *appSideMenu="'bottom'">
<app-action-button
(appClick)="button.emit(button.task)"
*ngFor="let button of buttonLayout"
[appDisabled]="appLoading"
[appIcon]="button.icon"
[ngClass]="button.cssClass"
class="side-menu-button">
{{button.label | translate}}
</app-action-button>
</ng-container>
</ng-container>
<ng-container *ngIf="appLoading">
<app-side-menu-status
*appSideMenu="'center'"
[appLoadingMessage]="'core.loading' | translate"
[appLoading]="appLoading">
</app-side-menu-status>
</ng-container>