Add ability to ignore warnings

Replace issue's array of entities with array of entity IDs
Improve issue ID hashing
This commit is contained in:
Quincy Morgan
2019-04-29 17:52:32 -07:00
parent 4215db39a2
commit 375779882d
34 changed files with 179 additions and 143 deletions
+5 -8
View File
@@ -67,10 +67,10 @@ export function uiCommitWarnings(context) {
items
.on('mouseover', function(d) {
if (d.entities) {
if (d.entityIds) {
context.surface().selectAll(
utilEntityOrMemberSelector(
d.entities.map(function(e) { return e.id; }),
d.entityIds,
context.graph()
)
).classed('hover', true);
@@ -81,12 +81,9 @@ export function uiCommitWarnings(context) {
.classed('hover', false);
})
.on('click', function(d) {
if (d.entities && d.entities.length > 0) {
context.map().zoomTo(d.entities[0]);
context.enter(modeSelect(
context,
d.entities.map(function(e) { return e.id; })
));
if (d.entityIds && d.entityIds.length > 0) {
context.map().zoomTo(context.entity(d.entityIds[0]));
context.enter(modeSelect(context, d.entityIds));
}
});
}