mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Specify that connecting waterways and highways with the fix will add a ford (close #6734)
This commit is contained in:
@@ -1497,6 +1497,8 @@ en:
|
||||
title: Connect this feature
|
||||
connect_features:
|
||||
title: Connect the features
|
||||
connect_using_ford:
|
||||
title: Connect using a ford
|
||||
continue_from_start:
|
||||
title: Continue drawing from start
|
||||
continue_from_end:
|
||||
|
||||
3
dist/locales/en.json
vendored
3
dist/locales/en.json
vendored
@@ -1863,6 +1863,9 @@
|
||||
"connect_features": {
|
||||
"title": "Connect the features"
|
||||
},
|
||||
"connect_using_ford": {
|
||||
"title": "Connect using a ford"
|
||||
},
|
||||
"continue_from_start": {
|
||||
"title": "Continue drawing from start"
|
||||
},
|
||||
|
||||
@@ -404,7 +404,7 @@ export function validationCrossingWays(context) {
|
||||
|
||||
var fixes = [];
|
||||
if (connectionTags) {
|
||||
fixes.push(makeConnectWaysFix());
|
||||
fixes.push(makeConnectWaysFix(connectionTags));
|
||||
}
|
||||
|
||||
var useFixIcon = 'iD-icon-layers';
|
||||
@@ -476,10 +476,16 @@ export function validationCrossingWays(context) {
|
||||
}
|
||||
}
|
||||
|
||||
function makeConnectWaysFix() {
|
||||
function makeConnectWaysFix(connectionTags) {
|
||||
|
||||
var fixTitleID = 'connect_features';
|
||||
if (connectionTags.ford) {
|
||||
fixTitleID = 'connect_using_ford';
|
||||
}
|
||||
|
||||
return new validationIssueFix({
|
||||
icon: 'iD-icon-crossing',
|
||||
title: t('issues.fix.connect_features.title'),
|
||||
title: t('issues.fix.' + fixTitleID + '.title'),
|
||||
onClick: function(context) {
|
||||
var loc = this.issue.loc;
|
||||
var connectionTags = this.issue.data.connectionTags;
|
||||
|
||||
Reference in New Issue
Block a user