// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. var Modal = ReactBootstrap.Modal; 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; return ( {`Mattermost ${config.Version}`}
{'Build Number:'}
{config.BuildNumber}
{'Build Date:'}
{config.BuildDate}
{'Build Hash:'}
{config.BuildHash}
{'Enterprise Ready:'}
{config.BuildEnterpriseReady}
); } } AboutBuildModal.defaultProps = { show: false }; AboutBuildModal.propTypes = { show: React.PropTypes.bool.isRequired, onModalDismissed: React.PropTypes.func.isRequired };