mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 09:12:52 +00:00
Make sure sidebar is expanded before entering walkthrough or saving
(closes #5574)
This commit is contained in:
@@ -513,6 +513,9 @@ export function modeSave(context) {
|
||||
|
||||
|
||||
mode.enter = function() {
|
||||
// Show sidebar
|
||||
context.ui().sidebar.expand();
|
||||
|
||||
function done() {
|
||||
context.ui().sidebar.show(commit);
|
||||
}
|
||||
|
||||
@@ -75,6 +75,11 @@ export function uiIntro(context) {
|
||||
var baseEntities = context.history().graph().base().entities;
|
||||
var countryCode = services.geocoder.countryCode;
|
||||
|
||||
// Show sidebar and disable the sidebar resizing button
|
||||
// (this needs to be before `context.inIntro(true)`)
|
||||
context.ui().sidebar.expand();
|
||||
d3_selectAll('button.sidebar-toggle').classed('disabled', true);
|
||||
|
||||
// Block saving
|
||||
context.inIntro(true);
|
||||
|
||||
@@ -109,8 +114,6 @@ export function uiIntro(context) {
|
||||
callback(null, t('intro.graph.countrycode'));
|
||||
};
|
||||
|
||||
// Disable the sidebar resizing button
|
||||
d3_selectAll('button.sidebar-toggle').classed('disabled', true);
|
||||
|
||||
d3_selectAll('#map .layer-background').style('opacity', 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user