From 7586f7e08650590e800942037a343d32157d2577 Mon Sep 17 00:00:00 2001 From: pwelby Date: Thu, 5 Oct 2017 23:53:14 -0400 Subject: [PATCH] Disable source switcher during walkthrough Closes #4401 -- fixed as proposed in the issue's comments --- modules/ui/source_switch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ui/source_switch.js b/modules/ui/source_switch.js index 244e26b465..475cd48016 100644 --- a/modules/ui/source_switch.js +++ b/modules/ui/source_switch.js @@ -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;