Fixed Remove button being displayed in View Members modal (#715)
This commit is contained in:
parent
e54861a7e9
commit
4db267ff61
1 changed files with 11 additions and 6 deletions
|
|
@ -135,16 +135,21 @@ class ChannelMembers extends PureComponent {
|
|||
};
|
||||
|
||||
emitCanRemoveMembers = (enabled) => {
|
||||
this.props.navigator.setButtons({
|
||||
rightButtons: [{...this.removeButton, disabled: !enabled}]
|
||||
});
|
||||
if (this.props.canManageUsers) {
|
||||
this.props.navigator.setButtons({
|
||||
rightButtons: [{...this.removeButton, disabled: !enabled}]
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
emitRemoving = (loading) => {
|
||||
this.setState({canSelect: false, removing: loading});
|
||||
this.props.navigator.setButtons({
|
||||
rightButtons: [{...this.removeButton, disabled: loading}]
|
||||
});
|
||||
|
||||
if (this.props.canManageUsers) {
|
||||
this.props.navigator.setButtons({
|
||||
rightButtons: [{...this.removeButton, disabled: loading}]
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
handleRemoveMembersPress = () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue