Commit 838d6982a834225413c32efb79cafbc555040bd7

Authored by Chantsova Ekaterina
1 parent 69e2f0c1

UI: make dashboard title translatable when 'Display dashboard title' option enabled

... ... @@ -148,7 +148,7 @@
148 148 <mat-drawer-content fxLayout="column" fxLayoutAlign="center start">
149 149 <section *ngIf="!widgetEditMode" class="tb-dashboard-title"
150 150 [ngStyle]="{'color': dashboard.configuration.settings.titleColor}">
151   - <h3 [fxShow]="!isEdit && displayTitle()">{{ dashboard.title }}</h3>
  151 + <h3 [fxShow]="!isEdit && displayTitle()">{{ utils.customTranslation(dashboard.title, dashboard.title) }}</h3>
152 152 <mat-form-field [fxShow]="isEdit" class="mat-block">
153 153 <mat-label translate [ngStyle]="{'color': dashboard.configuration.settings.titleColor}">dashboard.title</mat-label>
154 154 <input matInput class="tb-dashboard-title"
... ...
... ... @@ -303,7 +303,7 @@ export class DashboardPageComponent extends PageComponent implements IDashboardC
303 303 private breakpointObserver: BreakpointObserver,
304 304 private route: ActivatedRoute,
305 305 private router: Router,
306   - private utils: UtilsService,
  306 + public utils: UtilsService,
307 307 private dashboardUtils: DashboardUtilsService,
308 308 private authService: AuthService,
309 309 private entityService: EntityService,
... ...