Browse Source

Allow hide dashboard toolbar option for public dashboards

(cherry picked from commit c93ce94b9e)
pull/14953/head
Paolo Cristiani 6 months ago
committed by Viacheslav Klimov
parent
commit
2fc7ebecd4
  1. 2
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

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

@ -650,7 +650,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
private hideToolbarSetting(): boolean {
if (isDefined(this.dashboard.configuration?.settings?.hideToolbar)) {
const canApplyHideSetting = !this.forceFullscreen || this.isMobileApp;
const canApplyHideSetting = !this.forceFullscreen || this.isMobileApp || this.isPublicUser();
return this.dashboard.configuration.settings.hideToolbar && canApplyHideSetting;
} else {
return false;

Loading…
Cancel
Save