UI: Add readonly query parameter to dashboard page

This commit is contained in:
Igor Kulikov 2023-04-27 12:53:37 +03:00
parent 43dc8dd3e8
commit 3a87c3f39b

View File

@ -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,