feat: Hide Invite more when invite button is disabled.

This commit is contained in:
damencho 2020-06-16 08:19:18 -05:00 committed by Дамян Минков
parent e5cffc71c4
commit 66505666df
1 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,10 @@ import { Icon, IconInviteMore } from '../../../base/icons';
import { getParticipantCount } from '../../../base/participants';
import { connect } from '../../../base/redux';
import { beginAddPeople } from '../../../invite';
import { isToolboxVisible } from '../../../toolbox';
import {
isButtonEnabled,
isToolboxVisible
} from '../../../toolbox';
declare var interfaceConfig: Object;
@ -81,7 +84,7 @@ function mapStateToProps(state) {
return {
_tileViewEnabled: state['features/video-layout'].tileViewEnabled,
_visible: isToolboxVisible(state) && isAlone && !hide
_visible: isToolboxVisible(state) && isButtonEnabled('invite') && isAlone && !hide
};
}