diff options
Diffstat (limited to 'web/react/components/about_build_modal.jsx')
-rw-r--r-- | web/react/components/about_build_modal.jsx | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/web/react/components/about_build_modal.jsx b/web/react/components/about_build_modal.jsx index 3143bec22..f70027498 100644 --- a/web/react/components/about_build_modal.jsx +++ b/web/react/components/about_build_modal.jsx @@ -15,6 +15,19 @@ export default class AboutBuildModal extends React.Component { render() { const config = global.window.mm_config; + const license = global.window.mm_license; + + let title = 'Team Edition'; + let licensee; + if (config.BuildEnterpriseReady === 'true' && license.IsLicensed === 'true') { + title = 'Enterprise Edition'; + licensee = ( + <div className='row form-group'> + <div className='col-sm-3 info__label'>{'Licensed by:'}</div> + <div className='col-sm-9'>{license.Company}</div> + </div> + ); + } return ( <Modal @@ -22,9 +35,15 @@ export default class AboutBuildModal extends React.Component { onHide={this.doHide} > <Modal.Header closeButton={true}> - <Modal.Title>{`Mattermost ${config.Version}`}</Modal.Title> + <Modal.Title>{'About Mattermost'}</Modal.Title> </Modal.Header> <Modal.Body> + <h4>{`Mattermost ${title}`}</h4> + {licensee} + <div className='row form-group'> + <div className='col-sm-3 info__label'>{'Version:'}</div> + <div className='col-sm-9'>{config.Version}</div> + </div> <div className='row form-group'> <div className='col-sm-3 info__label'>{'Build Number:'}</div> <div className='col-sm-9'>{config.BuildNumber}</div> |