mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
added IssueManager
- IssueManager performs validation on the current graph and also stores the issues and notifies listeners when the issues changed
This commit is contained in:
@@ -11,8 +11,8 @@ export function uiCommitWarnings(context) {
|
||||
|
||||
function commitWarnings(selection) {
|
||||
|
||||
var changes = context.history().changes();
|
||||
var validations = context.history().validate(changes);
|
||||
// maybe call these issues now?
|
||||
var validations = context.issueManager().validate();
|
||||
|
||||
validations = _reduce(validations, function(validations, val) {
|
||||
var severity = val.severity;
|
||||
|
||||
Reference in New Issue
Block a user