From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 14 Mar 2016 08:50:46 -0400 Subject: Converting to Webpack. Stage 1. --- webapp/components/about_build_modal.jsx | 137 ++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 webapp/components/about_build_modal.jsx (limited to 'webapp/components/about_build_modal.jsx') diff --git a/webapp/components/about_build_modal.jsx b/webapp/components/about_build_modal.jsx new file mode 100644 index 000000000..e2fefc44e --- /dev/null +++ b/webapp/components/about_build_modal.jsx @@ -0,0 +1,137 @@ +// 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'; + +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') { + title = ( + + ); + if (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 +}; -- cgit v1.2.3-1-g7c22