mirror of https://github.com/vector-im/riot-web
Factor out `_closeSettings` for cleanliness
parent
9e6841df09
commit
e616dbac33
|
@ -469,7 +469,7 @@ export default React.createClass({
|
|||
|
||||
if (group.myMembership === 'leave') {
|
||||
// Leave settings - the user might have clicked the "Leave" button
|
||||
this._onCancelClick();
|
||||
this._closeSettings();
|
||||
}
|
||||
this.setState({membershipBusy: false});
|
||||
},
|
||||
|
@ -567,6 +567,10 @@ export default React.createClass({
|
|||
},
|
||||
|
||||
_onCancelClick: function() {
|
||||
this._closeSettings();
|
||||
},
|
||||
|
||||
_closeSettings() {
|
||||
this.setState({
|
||||
editing: false,
|
||||
profileForm: null,
|
||||
|
|
Loading…
Reference in New Issue