mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02:00
make all presets visible on init!!
This commit is contained in:
@@ -175,13 +175,13 @@ export function presetIndex() {
|
||||
};
|
||||
|
||||
all.init = function() {
|
||||
all.collection = [];
|
||||
all.collection = [];
|
||||
_recent.collection = [];
|
||||
_fields = {};
|
||||
_universal = [];
|
||||
_index = { point: {}, vertex: {}, line: {}, area: {}, relation: {} };
|
||||
|
||||
return all.build(data.presets);
|
||||
return all.build(data.presets, true);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -152,8 +152,10 @@ export function uiPresetList(context) {
|
||||
|
||||
function drawList(list, presets) {
|
||||
var collection = presets.collection.reduce(function(collection, preset) {
|
||||
if (preset.visible()) {
|
||||
collection.push(preset.members ? CategoryItem(preset) : PresetItem(preset));
|
||||
if (preset.members) {
|
||||
collection.push(CategoryItem(preset));
|
||||
} else if (preset.visible()) {
|
||||
collection.push(PresetItem(preset));
|
||||
}
|
||||
return collection;
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user