mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 14:45:12 +02:00
Added severity tooltip to issue icon
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+4
@@ -1064,6 +1064,10 @@
|
||||
"description": "All features",
|
||||
"tooltip": "Issues for all loaded features will be flagged"
|
||||
}
|
||||
},
|
||||
"severity": {
|
||||
"error": "error",
|
||||
"warning": "warning"
|
||||
}
|
||||
},
|
||||
"intro": {
|
||||
|
||||
@@ -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'));
|
||||
});
|
||||
|
||||
|
||||
@@ -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'));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user