// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {Modal} from 'react-bootstrap'; import {FormattedMessage} from 'react-intl'; import React from 'react'; import Constants from 'utils/constants.jsx'; export default class AboutBuildModal extends React.Component { constructor(props) { super(props); this.doHide = this.doHide.bind(this); } doHide() { this.props.onModalDismissed(); } render() { const config = global.window.mm_config; const license = global.window.mm_license; const mattermostLogo = Constants.MATTERMOST_ICON_SVG; let title = ( ); let subTitle = ( ); let learnMore = (
{'mattermost.org'}
); let licensee; if (config.BuildEnterpriseReady === 'true') { title = ( ); subTitle = ( ); learnMore = (
{'about.mattermost.com'}
); if (license.IsLicensed === 'true') { title = ( ); licensee = (
 {license.Company}
); } } let version = '\u00a0' + config.Version; if (config.BuildNumber !== config.Version) { version += '\u00a0 (' + config.BuildNumber + ')'; } return (

{'Mattermost'} {title}

{subTitle}

{version}
{'\u00a0' + config.SQLDriverName}
{licensee}
{learnMore}

 {config.BuildHash}
 {config.BuildHashEnterprise}

 {config.BuildDate}

); } } AboutBuildModal.defaultProps = { show: false }; AboutBuildModal.propTypes = { show: React.PropTypes.bool.isRequired, onModalDismissed: React.PropTypes.func.isRequired };