Add tooltip to disabled upload button to specify what is blocking the upload

This commit is contained in:
Quincy Morgan
2019-01-30 13:20:56 -05:00
parent 4048cdaf3b
commit 19a2a60bf4
5 changed files with 52 additions and 9 deletions

View File

@@ -30,6 +30,17 @@ export function IssueManager(context) {
return issues;
};
self.getWarnings = function() {
return issues.filter(function(issue) {
return issue.severity === 'warning';
});
};
self.getErrors = function() {
return issues.filter(function(issue) {
return issue.severity === 'error';
});
};
self.getIssuesForEntityWithID = function(entityID) {
if (!context.hasEntity(entityID)) {
return [];