mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Add tooltip to delete feature fix explaining if it's disabled (close #6588)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user