Remove "designated" from the general access case (#2213)

This commit is contained in:
Bryan Housel
2014-05-02 14:33:31 -04:00
parent 0eca063b8e
commit 14efaee004
2 changed files with 7 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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);