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:
Andrew Wong
2018-12-18 17:52:07 -05:00
parent 982f226d07
commit 30f25c6e8d
3 changed files with 29 additions and 4 deletions
+2 -2
View File
@@ -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;