When selecting an issue in the Issues pane, highlight the issue after selecting the feature

Use the same behavior when selecting an issue in the commit sidebar as in the issues pane
This commit is contained in:
Quincy Morgan
2019-05-10 10:18:46 -04:00
parent 8de10def2a
commit 1bbd496dfe
4 changed files with 40 additions and 30 deletions
+1 -5
View File
@@ -1,5 +1,4 @@
import { t } from '../util/locale';
import { modeSelect } from '../modes/select';
import { svgIcon } from '../svg/icon';
import { tooltip } from '../util/tooltip';
import { utilEntityOrMemberSelector } from '../util';
@@ -85,10 +84,7 @@ export function uiCommitWarnings(context) {
.classed('hover', false);
})
.on('click', function(d) {
if (d.entityIds && d.entityIds.length > 0) {
context.map().zoomTo(context.entity(d.entityIds[0]));
context.enter(modeSelect(context, d.entityIds));
}
context.validator().focusIssue(d);
});
}
}