[plugins-functionality | DONE | FIXED ] fix encoding in stats titles in the form

This commit is contained in:
argirok 2024-07-02 11:53:15 +03:00
parent 94e831c548
commit e70625405c
1 changed files with 5 additions and 2 deletions

View File

@ -40,9 +40,9 @@ import {PluginStats} from "./plugin-stats.component";
type="checkbox" field="sdgs" (editClicked)="pluginEditEvent = $event"
(changed)="indicatorsChanged(indicator._id,$event)">
</plugin-field-edit>
{{indicator.indicatorPaths[0].name?indicator.name:(indicator.indicatorPaths[0].parameters['title'] )}}
{{decode(indicator.indicatorPaths[0].name?indicator.name:(indicator.indicatorPaths[0].parameters['title'] ))}}
<span class=" uk-text-xsmall">
{{ indicator.indicatorPaths[0].parameters['subtitle']? ' ' + indicator.indicatorPaths[0].parameters['subtitle']:''}}</span>
{{ decode(indicator.indicatorPaths[0].parameters['subtitle']? ' ' + indicator.indicatorPaths[0].parameters['subtitle']:'')}}</span>
</div>
</ng-container>
@ -78,4 +78,7 @@ export class PluginStatsFormComponent extends PluginBaseFormComponent<PluginStat
$event.value = this.pluginObject['url'];
this.valuesChanged.emit($event)
}
decode(text){
return text? decodeURIComponent(text):"";
}
}