mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-05 19:01:30 +00:00
Fix issue where entity issues UI could show stale issues
This commit is contained in:
@@ -3041,7 +3041,8 @@ div.full-screen > button:hover {
|
||||
color: #ff9205;
|
||||
fill: #ff9205;
|
||||
}
|
||||
.issue.severity-warning .issue-fix-item.actionable:hover {
|
||||
.issue.severity-warning .issue-fix-item.actionable:hover,
|
||||
.issue.severity-warning .issue-fix-item.actionable button:focus {
|
||||
color: #f07504;
|
||||
fill: #f07504;
|
||||
}
|
||||
@@ -3060,7 +3061,8 @@ div.full-screen > button:hover {
|
||||
color: #DD1400;
|
||||
fill: #DD1400;
|
||||
}
|
||||
.issue.severity-error .issue-fix-item.actionable:hover {
|
||||
.issue.severity-error .issue-fix-item.actionable:hover,
|
||||
.issue.severity-error .issue-fix-item.actionable button:focus {
|
||||
color: #ab0f00;
|
||||
fill: #ab0f00;
|
||||
}
|
||||
|
||||
@@ -13,13 +13,15 @@ export function uiEntityIssues(context) {
|
||||
var _expanded = 0;
|
||||
var _entityID;
|
||||
|
||||
|
||||
// Listen for validation reload even though the entity editor is reloaded on
|
||||
// every graph change since the graph change event may happen before the issue
|
||||
// cache is refreshed
|
||||
context.validator().on('reload.entity_issues', function() {
|
||||
|
||||
update();
|
||||
|
||||
_selection.selectAll('.entity-issues')
|
||||
_selection.selectAll('.disclosure-wrap-entity_issues')
|
||||
.call(render);
|
||||
|
||||
update();
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user