fix rendering of html content in turn restriction editor

This commit is contained in:
Martin Raifer
2022-02-11 17:24:21 +01:00
parent 3d427df6d6
commit 4fb490abfa

View File

@@ -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: '' });
}