mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Factor out _closeSettings
for cleanliness
This commit is contained in:
parent
9e6841df09
commit
e616dbac33
1 changed files with 5 additions and 1 deletions
|
@ -469,7 +469,7 @@ export default React.createClass({
|
||||||
|
|
||||||
if (group.myMembership === 'leave') {
|
if (group.myMembership === 'leave') {
|
||||||
// Leave settings - the user might have clicked the "Leave" button
|
// Leave settings - the user might have clicked the "Leave" button
|
||||||
this._onCancelClick();
|
this._closeSettings();
|
||||||
}
|
}
|
||||||
this.setState({membershipBusy: false});
|
this.setState({membershipBusy: false});
|
||||||
},
|
},
|
||||||
|
@ -567,6 +567,10 @@ export default React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
_onCancelClick: function() {
|
_onCancelClick: function() {
|
||||||
|
this._closeSettings();
|
||||||
|
},
|
||||||
|
|
||||||
|
_closeSettings() {
|
||||||
this.setState({
|
this.setState({
|
||||||
editing: false,
|
editing: false,
|
||||||
profileForm: null,
|
profileForm: null,
|
||||||
|
|
Loading…
Reference in a new issue