You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Factor out _closeSettings
for cleanliness
This commit is contained in:
@ -468,7 +468,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});
|
||||||
},
|
},
|
||||||
@ -566,6 +566,10 @@ export default React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onCancelClick: function() {
|
_onCancelClick: function() {
|
||||||
|
this._closeSettings();
|
||||||
|
},
|
||||||
|
|
||||||
|
_closeSettings() {
|
||||||
this.setState({
|
this.setState({
|
||||||
editing: false,
|
editing: false,
|
||||||
profileForm: null,
|
profileForm: null,
|
||||||
|
Reference in New Issue
Block a user