Added a confirmation dialog for unsaved theme changes and removed unnecessary dialog close handling
Этот коммит содержится в:
@@ -13,7 +13,6 @@ export default class AdvancedSettingsDisplay extends React.Component {
|
||||
|
||||
this.updateSection = this.updateSection.bind(this);
|
||||
this.updateSetting = this.updateSetting.bind(this);
|
||||
this.handleClose = this.handleClose.bind(this);
|
||||
this.setupInitialState = this.setupInitialState.bind(this);
|
||||
|
||||
this.state = this.setupInitialState();
|
||||
@@ -59,18 +58,6 @@ export default class AdvancedSettingsDisplay extends React.Component {
|
||||
this.props.updateSection(section);
|
||||
}
|
||||
|
||||
handleClose() {
|
||||
this.updateSection('');
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
$('#user_settings').on('hidden.bs.modal', this.handleClose);
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
$('#user_settings').off('hidden.bs.modal', this.handleClose);
|
||||
}
|
||||
|
||||
render() {
|
||||
const serverError = this.state.serverError || null;
|
||||
let ctrlSendSection;
|
||||
|
||||
Ссылка в новой задаче
Block a user