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