Disable remove license button until LDAP is disabled
Этот коммит содержится в:
@@ -160,7 +160,7 @@ export default class AdminController extends React.Component {
|
|||||||
} else if (this.state.selected === 'ldap_settings') {
|
} else if (this.state.selected === 'ldap_settings') {
|
||||||
tab = <LdapSettingsTab config={this.state.config} />;
|
tab = <LdapSettingsTab config={this.state.config} />;
|
||||||
} else if (this.state.selected === 'license') {
|
} else if (this.state.selected === 'license') {
|
||||||
tab = <LicenseSettingsTab />;
|
tab = <LicenseSettingsTab config={this.state.config} />;
|
||||||
} else if (this.state.selected === 'team_users') {
|
} else if (this.state.selected === 'team_users') {
|
||||||
if (this.state.teams) {
|
if (this.state.teams) {
|
||||||
tab = <TeamUsersTab team={this.state.teams[this.state.selectedTeam]} />;
|
tab = <TeamUsersTab team={this.state.teams[this.state.selectedTeam]} />;
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ class LicenseSettings extends React.Component {
|
|||||||
licenseKey = (
|
licenseKey = (
|
||||||
<div className='col-sm-8'>
|
<div className='col-sm-8'>
|
||||||
<button
|
<button
|
||||||
|
disabled={this.props.config.LdapSettings.Enable}
|
||||||
className='btn btn-danger'
|
className='btn btn-danger'
|
||||||
onClick={this.handleRemove}
|
onClick={this.handleRemove}
|
||||||
id='remove-button'
|
id='remove-button'
|
||||||
@@ -266,7 +267,8 @@ class LicenseSettings extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LicenseSettings.propTypes = {
|
LicenseSettings.propTypes = {
|
||||||
intl: intlShape.isRequired
|
intl: intlShape.isRequired,
|
||||||
|
config: React.PropTypes.object
|
||||||
};
|
};
|
||||||
|
|
||||||
export default injectIntl(LicenseSettings);
|
export default injectIntl(LicenseSettings);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user