Added license validation and settings
Этот коммит содержится в:
@@ -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,18 @@ 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>
|
||||
<div className='row form-group'>
|
||||
<div className='col-sm-3 info__label'>{'Edition:'}</div>
|
||||
<div className='col-sm-9'>{`Mattermost ${title}`}</div>
|
||||
</div>
|
||||
{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>
|
||||
|
||||
Ссылка в новой задаче
Block a user