Browse Source
Merge pull request #5080 from ChantsovaEkaterina/improvement/multiple-attribute-pattern-in-widget-title
[3.3.1] UI: Multiple attributes widget, patterns support in widget title
pull/5140/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
ui-ngx/src/app/modules/home/components/widget/lib/multiple-input-widget.component.ts
|
|
|
@ -162,7 +162,8 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni |
|
|
|
private initializeConfig() { |
|
|
|
|
|
|
|
if (this.settings.widgetTitle && this.settings.widgetTitle.length) { |
|
|
|
this.ctx.widgetTitle = this.utils.customTranslation(this.settings.widgetTitle, this.settings.widgetTitle); |
|
|
|
const titlePatternText = this.utils.customTranslation(this.settings.widgetTitle, this.settings.widgetTitle); |
|
|
|
this.ctx.widgetTitle = createLabelFromDatasource(this.datasources[0], titlePatternText); |
|
|
|
} else { |
|
|
|
this.ctx.widgetTitle = this.ctx.widgetConfig.title; |
|
|
|
} |
|
|
|
|