mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-23 12:30:29 +01:00
Add tooltip to disabled upload button to specify what is blocking the upload
This commit is contained in:
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user