diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-22 10:53:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-22 10:53:57 -0400 |
commit | 9c2c941449c387b2407d10c101f39a2266a2e65a (patch) | |
tree | 4e4d3455fff32a07a0b9509d82aebdd235e37447 /webapp/components/sidebar_right_menu.jsx | |
parent | 946302d9a29cbf5702da9e18a52b59864a18c69e (diff) | |
download | chat-9c2c941449c387b2407d10c101f39a2266a2e65a.tar.gz chat-9c2c941449c387b2407d10c101f39a2266a2e65a.tar.bz2 chat-9c2c941449c387b2407d10c101f39a2266a2e65a.zip |
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
Diffstat (limited to 'webapp/components/sidebar_right_menu.jsx')
-rw-r--r-- | webapp/components/sidebar_right_menu.jsx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/webapp/components/sidebar_right_menu.jsx b/webapp/components/sidebar_right_menu.jsx index 25136e8bc..27e7c25d4 100644 --- a/webapp/components/sidebar_right_menu.jsx +++ b/webapp/components/sidebar_right_menu.jsx @@ -295,6 +295,25 @@ export default class SidebarRightMenu extends React.Component { this.openRightSidebar(); } + let nativeAppLink = null; + if (global.window.mm_config.AppDownloadLink && !Utils.isMobileApp()) { + nativeAppLink = ( + <li> + <Link + target='_blank' + rel='noopener noreferrer' + to={global.window.mm_config.AppDownloadLink} + > + <i className='icon fa fa-mobile'></i> + <FormattedMessage + id='sidebar_right_menu.nativeApps' + defaultMessage='Download Native Apps' + /> + </Link> + </li> + ); + } + return ( <div className='sidebar--menu' @@ -378,6 +397,7 @@ export default class SidebarRightMenu extends React.Component { /> </a> </li> + {nativeAppLink} </ul> </div> <UserSettingsModal |