Added severity tooltip to issue icon

This commit is contained in:
Quincy Morgan
2018-12-19 18:35:17 -05:00
parent ac539dddaa
commit 2207a6c3a4
4 changed files with 14 additions and 1 deletions
+3
View File
@@ -895,6 +895,9 @@ en:
all:
description: All features
tooltip: Issues for all loaded features will be flagged
severity:
error: error
warning: warning
intro:
done: done
ok: OK
+4
View File
@@ -1064,6 +1064,10 @@
"description": "All features",
"tooltip": "Issues for all loaded features will be flagged"
}
},
"severity": {
"error": "error",
"warning": "warning"
}
},
"intro": {
+4 -1
View File
@@ -49,7 +49,7 @@ export function uiEntityIssues(context) {
.placement('bottom')
)
.on('click', function(d) {
});
var label = enter
@@ -58,6 +58,9 @@ export function uiEntityIssues(context) {
label.each(function(d) {
var iconSuffix = d.severity === 'warning' ? 'alert' : 'error';
d3_select(this)
.append('div')
.attr('title', t('issues.severity.'+d.severity))
.style('display', 'inline')
.call(svgIcon('#iD-icon-' + iconSuffix, 'pre-text'));
});
+3
View File
@@ -144,6 +144,9 @@ export function uiIssues(context) {
label.each(function(d) {
var iconSuffix = d.severity === 'warning' ? 'alert' : 'error';
d3_select(this)
.append('div')
.attr('title', t('issues.severity.'+d.severity))
.style('display', 'inline')
.call(svgIcon('#iD-icon-' + iconSuffix, 'pre-text'));
});