[plugins-functionality | DONE | FIXED ] fix encoding in stats titles in the form
This commit is contained in:
parent
94e831c548
commit
e70625405c
|
@ -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):"";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue