// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. var Modal = ReactBootstrap.Modal; import {FormattedMessage} from 'mm-intl'; 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; let title = ( ); let licensee; if (config.BuildEnterpriseReady === 'true' && license.IsLicensed === 'true') { title = ( ); licensee = (
{license.Company}
); } return (

{'Mattermost'} {title}

{licensee}
{config.Version}
{config.BuildNumber}
{config.BuildDate}
{config.BuildHash}
); } } AboutBuildModal.defaultProps = { show: false }; AboutBuildModal.propTypes = { show: React.PropTypes.bool.isRequired, onModalDismissed: React.PropTypes.func.isRequired };