Add tooltip to delete feature fix explaining if it's disabled (close #6588)

This commit is contained in:
Quincy Morgan
2019-11-13 14:52:57 -05:00
parent 24c72b64d1
commit 96c8bcb152
3 changed files with 15 additions and 6 deletions
+6 -5
View File
@@ -81,11 +81,12 @@ export function validationIssue(attrs) {
export function validationIssueFix(attrs) {
this.title = attrs.title; // Required
this.onClick = attrs.onClick; // Optional - the function to run to apply the fix
this.icon = attrs.icon; // Optional - shows 'iD-icon-wrench' if not set
this.entityIds = attrs.entityIds || []; // Optional - used for hover-higlighting.
this.autoArgs = attrs.autoArgs; // Optional - pass [actions, annotation] arglist if this fix can automatically run
this.title = attrs.title; // Required
this.onClick = attrs.onClick; // Optional - the function to run to apply the fix
this.disabledReason = attrs.disabledReason; // Optional - a string explaining why the fix is unavailable, if any
this.icon = attrs.icon; // Optional - shows 'iD-icon-wrench' if not set
this.entityIds = attrs.entityIds || []; // Optional - used for hover-higlighting.
this.autoArgs = attrs.autoArgs; // Optional - pass [actions, annotation] arglist if this fix can automatically run
this.issue = null; // Generated link - added by validationIssue
}