Show the area preset browser rather than editor upon selecting multipolygon from the relation preset browser

This commit is contained in:
Quincy Morgan
2019-02-06 09:48:45 -05:00
parent 33d02cdba0
commit 21967d2654
+13 -4
View File
@@ -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) {