mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
add/make visible weakly matched presets
This commit is contained in:
@@ -218,6 +218,8 @@ export function uiEntityEditor(context) {
|
||||
// A "weak" preset doesn't set any tags. (e.g. "Address")
|
||||
// Don't replace a weak preset with a fallback preset (e.g. "Point")
|
||||
if (!(weakPreset && match.isFallback())) {
|
||||
match.visible(true);
|
||||
context.presets().choose(match);
|
||||
entityEditor.preset(match);
|
||||
}
|
||||
entityEditor.modified(_base !== graph);
|
||||
@@ -250,6 +252,7 @@ export function uiEntityEditor(context) {
|
||||
context.overwrite(actionChangeTags(_entityID, tags), annotation);
|
||||
} else {
|
||||
context.perform(actionChangeTags(_entityID, tags), annotation);
|
||||
// context.presets().choose(context.presets().match(context.graph))
|
||||
_coalesceChanges = !!onInput;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user