mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Show the area preset browser rather than editor upon selecting multipolygon from the relation preset browser
This commit is contained in:
+13
-4
@@ -85,11 +85,20 @@ export function uiInspector(context) {
|
||||
};
|
||||
|
||||
inspector.setPreset = function(preset) {
|
||||
wrap.transition()
|
||||
.styleTween('right', function() { return d3_interpolate('-100%', '0%'); });
|
||||
|
||||
editorPane
|
||||
.call(entityEditor.preset(preset));
|
||||
// upon setting multipolygon, go to the area preset list instead of the editor
|
||||
if (preset.id === 'type/multipolygon') {
|
||||
presetPane
|
||||
.call(presetList.preset(preset).autofocus(true));
|
||||
|
||||
} else {
|
||||
wrap.transition()
|
||||
.styleTween('right', function() { return d3_interpolate('-100%', '0%'); });
|
||||
|
||||
editorPane
|
||||
.call(entityEditor.preset(preset));
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
inspector.state = function(val) {
|
||||
|
||||
Reference in New Issue
Block a user