mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 14:38:05 +02:00
Added severity tooltip to issue icon
This commit is contained in:
@@ -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