Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix closing of videos tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jan 31, 2017
1 parent e76b2b5 commit 365ffad
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -335,15 +335,15 @@
closeGettingStarted: function(){
this.setState({showGettingStarted:false});
if(this.state.initiallyOpened){
let guiPrefs = this.props.user.getPreference("gui_preferences", true);
let guiPrefs = this.props.user.getPreference("gui_preferences", true) || {};
guiPrefs['WelcomeComponent.HomePanel.TutorialShown'] = true;
this.props.user.setPreference('gui_preferences', guiPrefs, true);
this.props.user.savePreference('gui_preferences');
}
},

getInitialState:function(){
let guiPrefs = this.props.user.getPreference('gui_preferences', true);
let guiPrefs = this.props.user.getPreference('gui_preferences', true) || {};
return {showGettingStarted:false, initiallyOpened:!guiPrefs['WelcomeComponent.HomePanel.TutorialShown']};
},

Expand Down

0 comments on commit 365ffad

Please sign in to comment.