mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-31 20:21:36 +02:00
Add ability to ignore warnings
Replace issue's array of entities with array of entity IDs Improve issue ID hashing
This commit is contained in:
@@ -98,7 +98,7 @@ export function validationImpossibleOneway() {
|
||||
title: t('issues.fix.reverse_feature.title'),
|
||||
entityIds: [way.id],
|
||||
onClick: function() {
|
||||
var id = this.issue.entities[0].id;
|
||||
var id = this.issue.entityIds[0];
|
||||
context.perform(actionReverse(id), t('operations.reverse.annotation'));
|
||||
}
|
||||
}));
|
||||
@@ -108,8 +108,8 @@ export function validationImpossibleOneway() {
|
||||
icon: 'iD-operation-continue' + (isFirst ? '-left' : ''),
|
||||
title: t('issues.fix.continue_from_' + (isFirst ? 'start' : 'end') + '.title'),
|
||||
onClick: function() {
|
||||
var entityID = this.issue.entities[0].id;
|
||||
var vertexID = this.issue.entities[1].id;
|
||||
var entityID = this.issue.entityIds[0];
|
||||
var vertexID = this.issue.entityIds[1];
|
||||
var way = context.entity(entityID);
|
||||
var vertex = context.entity(vertexID);
|
||||
continueDrawing(way, vertex, context);
|
||||
@@ -120,7 +120,7 @@ export function validationImpossibleOneway() {
|
||||
var placement = isFirst ? 'start' : 'end',
|
||||
messageID = wayType + '.',
|
||||
referenceID = wayType + '.';
|
||||
|
||||
|
||||
if (isWaterway) {
|
||||
messageID += 'connected.' + placement;
|
||||
referenceID += 'connected';
|
||||
@@ -137,7 +137,7 @@ export function validationImpossibleOneway() {
|
||||
feature: utilDisplayLabel(way, context)
|
||||
}),
|
||||
reference: getReference(referenceID),
|
||||
entities: [way, node],
|
||||
entityIds: [way.id, node.id],
|
||||
fixes: fixes
|
||||
})];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user