Browse Source

Dashboard fullscreen: add navigation 'home' on logo click.

pull/14057/head
deaflynx 1 year ago
parent
commit
295d96f5b2
  1. 4
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html
  2. 4
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

4
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.html

@ -74,8 +74,8 @@
{{'dashboard.states-short' | translate}}
</button>
</ng-container>
<img *ngIf="showDashboardLogo()" [src]="dashboardLogo | image | async"
aria-label="dashboard_logo" class="dashboard_logo"/>
<img *ngIf="showDashboardLogo()" [src]="dashboardLogo | image | async" (click)="goHome()"
aria-label="dashboard_logo" class="dashboard_logo pointer-events-auto cursor-pointer"/>
</div>
<div class="tb-dashboard-action-panel">
<button [class.!hidden]="!showCloseToolbar()" mat-icon-button class="close-action"

4
ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

@ -1800,6 +1800,10 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
}
}
goHome() {
this.router.navigate(['home']);
}
get showMainLayoutFiller(): boolean {
const layoutMaxWidth = this.dashboardUtils.getBreakpointInfoById(this.layouts.main.layoutCtx.breakpoint)?.maxWidth || Infinity;
const dashboardMaxWidth = this.dashboardUtils.getBreakpointInfoById(this.dashboardCtx.breakpoint)?.maxWidth || Infinity;

Loading…
Cancel
Save