Commit ab8eb94c4abfdcc9473c681f6803a7526fd32a0b
1 parent
eb8f115c
UI: Multiple attributes widget, patterns support in widget title
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -162,7 +162,8 @@ export class MultipleInputWidgetComponent extends PageComponent implements OnIni |
162 | 162 | private initializeConfig() { |
163 | 163 | |
164 | 164 | if (this.settings.widgetTitle && this.settings.widgetTitle.length) { |
165 | - this.ctx.widgetTitle = this.utils.customTranslation(this.settings.widgetTitle, this.settings.widgetTitle); | |
165 | + const titlePatternText = this.utils.customTranslation(this.settings.widgetTitle, this.settings.widgetTitle); | |
166 | + this.ctx.widgetTitle = createLabelFromDatasource(this.datasources[0], titlePatternText); | |
166 | 167 | } else { |
167 | 168 | this.ctx.widgetTitle = this.ctx.widgetConfig.title; |
168 | 169 | } | ... | ... |