Merge pull request #4402 from pwelby/patch-1

Disable source switcher during walkthrough
This commit is contained in:
Bryan Housel
2017-10-06 00:12:19 -04:00
committed by GitHub

View File

@@ -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;