Skip to content

Commit

Permalink
Merge pull request #4402 from pwelby/patch-1
Browse files Browse the repository at this point in the history
Disable source switcher during walkthrough
  • Loading branch information
bhousel authored Oct 6, 2017
2 parents dd40dd5 + 7586f7e commit 07e0ee0
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 07e0ee0

Please sign in to comment.