mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
Flag restriction as indirect if from doesn't match
This commit is contained in:
@@ -349,7 +349,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
var actions;
|
||||
datum.restriction = osmInferRestriction(vgraph, datum.from, datum.to, projection);
|
||||
|
||||
if (datum.restrictionID && datum.indirect) {
|
||||
if (datum.restrictionID && !datum.direct) {
|
||||
return;
|
||||
} else if (datum.restrictionID && !datum.only) { // cycle thru the `only_` state
|
||||
var datumOnly = _cloneDeep(datum);
|
||||
@@ -418,7 +418,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
}
|
||||
|
||||
var s = (klass === 'allow' ? turnType + ' Allowed' : restrictType + ' ' + turnType);
|
||||
if (datum.indirect) { s += ' (indirect)'; }
|
||||
if (datum.direct === false) { s += ' (indirect)'; }
|
||||
|
||||
div = help.append('div');
|
||||
div.append('span')
|
||||
|
||||
Reference in New Issue
Block a user