From 9c2c941449c387b2407d10c101f39a2266a2e65a Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 22 Jul 2016 10:53:57 -0400 Subject: PLT-1866/PLT-3509 Added links to download the native apps (#3651) * PLT-1866 Added configurable links for native app downloads * PLT-1866 Added native app download link to main menu * PLT-3509 Added native app link to tutorial * PLT-3509 Added native app link to welcome email * PLT-3509 Made link to apps in welcome email conditional on being set --- .../components/tutorial/tutorial_intro_screens.jsx | 46 +++++++++++++++++++++- 1 file changed, 44 insertions(+), 2 deletions(-) (limited to 'webapp/components/tutorial') diff --git a/webapp/components/tutorial/tutorial_intro_screens.jsx b/webapp/components/tutorial/tutorial_intro_screens.jsx index 639fa07b2..f435ff972 100644 --- a/webapp/components/tutorial/tutorial_intro_screens.jsx +++ b/webapp/components/tutorial/tutorial_intro_screens.jsx @@ -7,12 +7,12 @@ import PreferenceStore from 'stores/preference_store.jsx'; import * as AsyncClient from 'utils/async_client.jsx'; import * as GlobalActions from 'actions/global_actions.jsx'; -import Constants from 'utils/constants.jsx'; +import {Constants, Preferences} from 'utils/constants.jsx'; import {FormattedMessage, FormattedHTMLMessage} from 'react-intl'; import {browserHistory} from 'react-router/es6'; -const Preferences = Constants.Preferences; +import AppIcons from 'images/appIcons.png'; const NUM_SCREENS = 3; @@ -91,6 +91,46 @@ export default class TutorialIntroScreens extends React.Component { createScreenTwo() { const circles = this.createCircles(); + let appDownloadLink = null; + let appDownloadImage = null; + if (global.window.mm_config.AppDownloadLink) { + // not using a FormattedHTMLMessage here since mm_config.AppDownloadLink is configurable and could be used + // to inject HTML if we're not careful + appDownloadLink = ( + + + + ) + }} + /> + ); + + appDownloadImage = ( + + + + ); + } + return (
Communication happens in public discussion channels, private groups and direct messages.

Everything is archived and searchable from any web-enabled desktop, laptop or phone.

' /> + {appDownloadLink} + {appDownloadImage} {circles}
); -- cgit v1.2.3-1-g7c22