Fix issue where entity issues UI could show stale issues

This commit is contained in:
Quincy Morgan
2019-02-15 12:52:09 -05:00
parent b57e5a75b8
commit 6cb4359d13
2 changed files with 10 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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();
});