mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 03:11:22 +00:00
Remove "designated" from the general access case (#2213)
This commit is contained in:
@@ -49,10 +49,11 @@ iD.ui.preset.access = function(field) {
|
||||
}
|
||||
|
||||
access.options = function(type) {
|
||||
var options = ['no', 'permissive', 'private', 'designated', 'destination'];
|
||||
var options = ['no', 'permissive', 'private', 'destination'];
|
||||
|
||||
if (type !== 'access') {
|
||||
options.unshift('yes');
|
||||
options.push('designated');
|
||||
}
|
||||
|
||||
return options.map(function(option) {
|
||||
|
||||
@@ -21,6 +21,11 @@ describe('iD.ui.preset.access', function() {
|
||||
expect(_.pluck(access.options('access'), 'value')).not.to.include('yes');
|
||||
});
|
||||
|
||||
it('does not include a "designated" option for general access (#2213)', function() {
|
||||
var access = iD.ui.preset.access(field);
|
||||
expect(_.pluck(access.options('access'), 'value')).not.to.include('designated');
|
||||
});
|
||||
|
||||
it('sets foot placeholder to "yes" for footways, steps, and pedestrian', function() {
|
||||
var access = iD.ui.preset.access(field);
|
||||
selection.call(access);
|
||||
|
||||
Reference in New Issue
Block a user