mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Factor out _closeSettings
for cleanliness
This commit is contained in:
parent
24d4df87d1
commit
de1073aacb
@ -468,7 +468,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});
|
||||
},
|
||||
@ -566,6 +566,10 @@ export default React.createClass({
|
||||
},
|
||||
|
||||
_onCancelClick: function() {
|
||||
this._closeSettings();
|
||||
},
|
||||
|
||||
_closeSettings() {
|
||||
this.setState({
|
||||
editing: false,
|
||||
profileForm: null,
|
||||
|
Loading…
Reference in New Issue
Block a user