mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
show turn restriction editor also when there is only one _to_ way, fixes #9983
as there might exist turn restrictions with that way as _via_.
This commit is contained in:
@@ -45,6 +45,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
|
||||
#### :camera: Street-Level
|
||||
#### :white_check_mark: Validation
|
||||
#### :bug: Bugfixes
|
||||
* Show turn restriction editor also when there is only one possible "to" way, as there might exist restrictions with that way as _via_ ([#9983])
|
||||
#### :earth_asia: Localization
|
||||
#### :hourglass: Performance
|
||||
#### :mortar_board: Walkthrough / Help
|
||||
@@ -52,6 +53,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
|
||||
|
||||
[#9424]: https://github.com/openstreetmap/iD/pull/9424
|
||||
[#9422]: https://github.com/openstreetmap/iD/issues/9422
|
||||
[#9983]: https://github.com/openstreetmap/iD/issues/9983
|
||||
|
||||
|
||||
# 2.27.3
|
||||
|
||||
@@ -53,9 +53,7 @@ export function uiFieldRestrictions(field, context) {
|
||||
_intersection.vertices.length && // has vertices
|
||||
_intersection.vertices // has the vertex that the user selected
|
||||
.filter(function(vertex) { return vertex.id === _vertexID; }).length &&
|
||||
_intersection.ways.length > 2 && // has more than 2 ways
|
||||
_intersection.ways // has more than 1 TO way
|
||||
.filter(function(way) { return way.__to; }).length > 1
|
||||
_intersection.ways.length > 2 // has more than 2 ways
|
||||
);
|
||||
|
||||
// Also hide in the case where
|
||||
|
||||
Reference in New Issue
Block a user