diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-10 08:09:22 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-10 08:09:22 -0500 |
commit | 011f2bc19c4aa80072224d106f1cfa51405c2ac2 (patch) | |
tree | 90bb9d97906246a51b31077bcb9044e7d6f919ae /web/react/components/tutorial/tutorial_intro_screens.jsx | |
parent | c6065a2b023059420a4d72e1216d2d7f7f6ef754 (diff) | |
parent | 55882e1b8356fd59db9fc35f2d88617b1e542a4d (diff) | |
download | chat-011f2bc19c4aa80072224d106f1cfa51405c2ac2.tar.gz chat-011f2bc19c4aa80072224d106f1cfa51405c2ac2.tar.bz2 chat-011f2bc19c4aa80072224d106f1cfa51405c2ac2.zip |
Merge pull request #1370 from mattermost/plt-1008
PLT-1008 Add skip tutorial button to intro screens
Diffstat (limited to 'web/react/components/tutorial/tutorial_intro_screens.jsx')
-rw-r--r-- | web/react/components/tutorial/tutorial_intro_screens.jsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/react/components/tutorial/tutorial_intro_screens.jsx b/web/react/components/tutorial/tutorial_intro_screens.jsx index 66ca556c6..3afc5145d 100644 --- a/web/react/components/tutorial/tutorial_intro_screens.jsx +++ b/web/react/components/tutorial/tutorial_intro_screens.jsx @@ -41,6 +41,11 @@ export default class TutorialIntroScreens extends React.Component { componentDidMount() { $('.tutorials__scroll').perfectScrollbar(); } + skipTutorial(e) { + e.preventDefault(); + const preference = PreferenceStore.setPreference(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), '999'); + AsyncClient.savePreferences([preference]); + } createScreen() { switch (this.state.currentScreen) { case 0: @@ -176,6 +181,13 @@ export default class TutorialIntroScreens extends React.Component { > {'Next'} </button> + <a + className='tutorial-skip' + href='#' + onClick={this.skipTutorial} + > + {'Skip tutorial'} + </a> </div> </div> </div> |