mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
fix rendering of html content in turn restriction editor
This commit is contained in:
@@ -505,15 +505,15 @@ export function uiFieldRestrictions(field, context) {
|
||||
|
||||
if (datum.no) {
|
||||
klass = 'restrict';
|
||||
turnText = t.html('restriction.help.turn.no_' + turnType, { indirect: indirect });
|
||||
turnText = t.html('restriction.help.turn.no_' + turnType, { indirect: { html: indirect } });
|
||||
nextText = t.html('restriction.help.turn.only_' + turnType, { indirect: '' });
|
||||
} else if (datum.only) {
|
||||
klass = 'only';
|
||||
turnText = t.html('restriction.help.turn.only_' + turnType, { indirect: indirect });
|
||||
turnText = t.html('restriction.help.turn.only_' + turnType, { indirect: { html: indirect } });
|
||||
nextText = t.html('restriction.help.turn.allowed_' + turnType, { indirect: '' });
|
||||
} else {
|
||||
klass = 'allow';
|
||||
turnText = t.html('restriction.help.turn.allowed_' + turnType, { indirect: indirect });
|
||||
turnText = t.html('restriction.help.turn.allowed_' + turnType, { indirect: { html: indirect } });
|
||||
nextText = t.html('restriction.help.turn.no_' + turnType, { indirect: '' });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user