config: add ability to hide the "invite more" header button
This commit is contained in:
parent
e8e2b3c341
commit
e3d66db3d7
|
@ -38,6 +38,11 @@ var interfaceConfig = {
|
|||
*/
|
||||
AUTHENTICATION_ENABLE: true,
|
||||
|
||||
/**
|
||||
* Hide the invite prompt in the header when alone in the meeting.
|
||||
*/
|
||||
HIDE_INVITE_MORE_HEADER: false,
|
||||
|
||||
/**
|
||||
* The name of the toolbar buttons to display in the toolbar. If present,
|
||||
* the button will display. Exceptions are "livestreaming" and "recording"
|
||||
|
|
|
@ -29,6 +29,7 @@ export default [
|
|||
'ENFORCE_NOTIFICATION_AUTO_DISMISS_TIMEOUT',
|
||||
'FILM_STRIP_MAX_HEIGHT',
|
||||
'GENERATE_ROOMNAMES_ON_WELCOME_PAGE',
|
||||
'HIDE_INVITE_MORE_HEADER',
|
||||
'INDICATOR_FONT_SIZES',
|
||||
'INITIAL_TOOLBAR_TIMEOUT',
|
||||
'INVITATION_POWERED_BY',
|
||||
|
|
|
@ -9,6 +9,8 @@ import { connect } from '../../../base/redux';
|
|||
import { beginAddPeople } from '../../../invite';
|
||||
import { isToolboxVisible } from '../../../toolbox';
|
||||
|
||||
declare var interfaceConfig: Object;
|
||||
|
||||
type Props = {
|
||||
|
||||
/**
|
||||
|
@ -74,10 +76,12 @@ function InviteMore({
|
|||
*/
|
||||
function mapStateToProps(state) {
|
||||
const participantCount = getParticipantCount(state);
|
||||
const isAlone = participantCount === 1;
|
||||
const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER;
|
||||
|
||||
return {
|
||||
_tileViewEnabled: state['features/video-layout'].tileViewEnabled,
|
||||
_visible: isToolboxVisible(state) && participantCount === 1
|
||||
_visible: isToolboxVisible(state) && isAlone && !hide
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue