From 3a87c3f39b57c3ddb432f1729c86c41700fe0315 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Thu, 27 Apr 2023 12:53:37 +0300 Subject: [PATCH] UI: Add readonly query parameter to dashboard page --- .../home/components/dashboard-page/dashboard-page.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts index 0150597b50..c01379bb95 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts @@ -466,7 +466,8 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC this.singlePageMode = data.singlePageMode; this.readonly = this.embedded || (this.singlePageMode && !this.widgetEditMode && !this.route.snapshot.queryParamMap.get('edit')) - || this.forceFullscreen || this.isMobileApp || this.authUser.authority === Authority.CUSTOMER_USER; + || this.forceFullscreen || this.isMobileApp || this.authUser.authority === Authority.CUSTOMER_USER || + this.route.snapshot.queryParamMap.get('readonly') === 'true'; this.dashboardCtx.aliasController = this.parentAliasController ? this.parentAliasController : new AliasController(this.utils, this.entityService,