Rename "visible" property of presets to "addable" (re: a06ec59514b30a52601e3614ef69006d2dc1bc91)

This commit is contained in:
Quincy Morgan
2020-01-15 14:29:45 -05:00
parent f270c475ea
commit 41355bf2a0
5 changed files with 29 additions and 26 deletions
+2 -2
View File
@@ -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;