Browse Source

UI: Add readonly query parameter to dashboard page

pull/8144/head
Igor Kulikov 3 years ago
parent
commit
3a87c3f39b
  1. 3
      ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts

3
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.singlePageMode = data.singlePageMode;
this.readonly = this.embedded || (this.singlePageMode && !this.widgetEditMode && !this.route.snapshot.queryParamMap.get('edit')) 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.dashboardCtx.aliasController = this.parentAliasController ? this.parentAliasController : new AliasController(this.utils,
this.entityService, this.entityService,

Loading…
Cancel
Save