[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"
|
type="checkbox" field="sdgs" (editClicked)="pluginEditEvent = $event"
|
||||||
(changed)="indicatorsChanged(indicator._id,$event)">
|
(changed)="indicatorsChanged(indicator._id,$event)">
|
||||||
</plugin-field-edit>
|
</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">
|
<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>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
@ -78,4 +78,7 @@ export class PluginStatsFormComponent extends PluginBaseFormComponent<PluginStat
|
||||||
$event.value = this.pluginObject['url'];
|
$event.value = this.pluginObject['url'];
|
||||||
this.valuesChanged.emit($event)
|
this.valuesChanged.emit($event)
|
||||||
}
|
}
|
||||||
|
decode(text){
|
||||||
|
return text? decodeURIComponent(text):"";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue