Added colors to issue list icons

Corrected icon for warnings
Made disconnected_highway issue a warning instead of an error
This commit is contained in:
Quincy Morgan
2018-12-19 13:07:47 -05:00
parent a95af00b1d
commit 6a931f9be6
3 changed files with 16 additions and 8 deletions
+6 -6
View File
@@ -149,12 +149,12 @@ export function uiIssues(context) {
var label = enter
.append('label');
label
.call(
svgIcon(function(d) {
var iconSuffix = d.severity === 'warning' ? 'alert' : 'error';
return '#iD-icon-'+iconSuffix;
}, 'pre-text'));
label.each(function(d) {
var iconSuffix = d.severity === 'warning' ? 'alert' : 'error';
d3_select(this)
.call(svgIcon('#iD-icon-' + iconSuffix, 'pre-text'));
});
/*label
.append('input')
.attr('type', type)
+1 -1
View File
@@ -46,7 +46,7 @@ export function validationDisconnectedHighway(context) {
issues.push(new validationIssue({
type: ValidationIssueType.disconnected_highway,
severity: ValidationIssueSeverity.error,
severity: ValidationIssueSeverity.warning,
message: t('validations.disconnected_highway', {entityLabel: entityLabel}),
tooltip: t('validations.disconnected_highway_tooltip'),
entities: [entity],