mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-20 10:03:29 +00:00
Merge pull request #4402 from pwelby/patch-1
Disable source switcher during walkthrough
This commit is contained in:
@@ -13,6 +13,7 @@ export function uiSourceSwitch(context) {
|
||||
|
||||
function click() {
|
||||
d3_event.preventDefault();
|
||||
if (context.inIntro()) return;
|
||||
|
||||
if (context.history().hasChanges() &&
|
||||
!window.confirm(t('source_switch.lose_changes'))) return;
|
||||
|
||||
Reference in New Issue
Block a user