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/navbar_dropdown.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/navbar_dropdown.jsx')
-rw-r--r-- | webapp/components/navbar_dropdown.jsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx index 4912b8ebf..81bd31269 100644 --- a/webapp/components/navbar_dropdown.jsx +++ b/webapp/components/navbar_dropdown.jsx @@ -332,6 +332,26 @@ export default class NavbarDropdown extends React.Component { ); } + let nativeAppDivider = null; + let nativeAppLink = null; + if (global.window.mm_config.AppDownloadLink) { + nativeAppDivider = <li className='divider'/>; + nativeAppLink = ( + <li> + <Link + target='_blank' + rel='noopener noreferrer' + to={global.window.mm_config.AppDownloadLink} + > + <FormattedMessage + id='navbar_dropdown.nativeApps' + defaultMessage='Download Native Apps' + /> + </Link> + </li> + ); + } + return ( <ul className='nav navbar-nav navbar-right'> <li @@ -403,6 +423,8 @@ export default class NavbarDropdown extends React.Component { /> </a> </li> + {nativeAppDivider} + {nativeAppLink} <UserSettingsModal show={this.state.showUserSettingsModal} onModalDismissed={() => this.setState({showUserSettingsModal: false})} |