mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-01 12:41:36 +02:00
Rename "visible" property of presets to "addable" (re: a06ec59514b30a52601e3614ef69006d2dc1bc91)
This commit is contained in:
@@ -156,11 +156,11 @@ export function uiPresetList(context) {
|
||||
var collection = presets.collection.reduce(function(collection, preset) {
|
||||
if (preset.members) {
|
||||
if (preset.members.collection.filter(function(preset) {
|
||||
return preset.visible();
|
||||
return preset.addable();
|
||||
}).length > 1) {
|
||||
collection.push(CategoryItem(preset));
|
||||
}
|
||||
} else if (preset.visible()) {
|
||||
} else if (preset.addable()) {
|
||||
collection.push(PresetItem(preset));
|
||||
}
|
||||
return collection;
|
||||
|
||||
Reference in New Issue
Block a user