Flag restriction as indirect if from doesn't match

This commit is contained in:
Bryan Housel
2018-02-15 22:18:01 -05:00
parent f7e6eae065
commit a2b6a3b09b
3 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -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')