refactor validation modules to not inject html

This commit is contained in:
Martin Raifer
2022-06-24 12:48:46 +02:00
parent 6626ea0682
commit 8bb1d39431
20 changed files with 73 additions and 68 deletions
+5 -2
View File
@@ -1,3 +1,5 @@
import { select as d3_select } from 'd3-selection';
import { t } from '../core/localizer';
import { svgIcon } from '../svg/icon';
import { uiTooltip } from './tooltip';
@@ -89,8 +91,9 @@ export function uiCommitWarnings(context) {
.merge(items);
items.selectAll('.issue-message')
.html(function(d) {
return d.message(context);
.text('')
.each(function(d) {
return d.message(context)(d3_select(this));
});
}
}