[master | DONE | CHANGED] Monitor - Indicators: minor update subtitle when there are filters applied, add title and clear all in selected filters above indicators

This commit is contained in:
argirok 2024-01-31 10:38:20 +02:00
parent a6ea10fd90
commit bedb7f013b
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ export class IndicatorUtils {
replacedValue = stakeholder.index_shortName.toLowerCase();
}
if (key == "subtitle" && filterSubtitleText.length > 0) {
replacedValue = replacedValue + ' - Filter by: ('+filterSubtitleText.join(", ") + ')';
replacedValue = replacedValue + (replacedValue.length > 0 ? ' - ':'') + ' Active filters: ('+filterSubtitleText.join(", ") + ')';
}
replacedUrl = replacedUrl.split(ChartHelper.prefix + key + ChartHelper.suffix).join(replacedValue)
});