Skip to content

Commit

Permalink
Disable source switcher during walkthrough
Browse files Browse the repository at this point in the history
Closes #4401 -- fixed as proposed in the issue's comments
  • Loading branch information
pwelby authored Oct 6, 2017
1 parent dd40dd5 commit 7586f7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/ui/source_switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7586f7e

Please sign in to comment.