mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
Show preset grid for untagged features (fixes #1258)
This commit is contained in:
@@ -75,9 +75,9 @@ iD.ui.Inspector = function(context, entity) {
|
||||
presetLayer.call(presetGrid, preset);
|
||||
});
|
||||
|
||||
var initial = entity.isNew() && _.without(Object.keys(entity.tags), 'area').length === 0;
|
||||
var tagless = _.without(Object.keys(entity.tags), 'area').length === 0;
|
||||
|
||||
if (initial) {
|
||||
if (tagless) {
|
||||
panewrap.style('right', '-100%');
|
||||
presetLayer.call(presetGrid);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user