Disable fullscreen in settings dropdown by meteor.settings
This commit is contained in:
parent
17e7bf8fbb
commit
6ec4fd0263
@ -110,6 +110,8 @@ const defaultProps = {
|
||||
isBreakoutRoom: false,
|
||||
};
|
||||
|
||||
const ALLOW_FULLSCREEN = Meteor.settings.public.app.allowFullscreen;
|
||||
|
||||
class SettingsDropdown extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
@ -146,6 +148,8 @@ class SettingsDropdown extends PureComponent {
|
||||
handleToggleFullscreen,
|
||||
} = this.props;
|
||||
|
||||
if (noIOSFullscreen || !ALLOW_FULLSCREEN) return null;
|
||||
|
||||
let fullscreenLabel = intl.formatMessage(intlMessages.fullscreenLabel);
|
||||
let fullscreenDesc = intl.formatMessage(intlMessages.fullscreenDesc);
|
||||
let fullscreenIcon = 'fullscreen';
|
||||
@ -156,8 +160,6 @@ class SettingsDropdown extends PureComponent {
|
||||
fullscreenIcon = 'exit_fullscreen';
|
||||
}
|
||||
|
||||
if (noIOSFullscreen) return null;
|
||||
|
||||
return (
|
||||
<DropdownListItem
|
||||
key="list-item-fullscreen"
|
||||
@ -202,7 +204,9 @@ class SettingsDropdown extends PureComponent {
|
||||
/>
|
||||
);
|
||||
|
||||
const shouldRenderLogoutOption = (isMeteorConnected && allowLogoutSetting) ? logoutOption : null;
|
||||
const shouldRenderLogoutOption = (isMeteorConnected && allowLogoutSetting)
|
||||
? logoutOption
|
||||
: null;
|
||||
|
||||
return _.compact([
|
||||
this.getFullscreenItem(),
|
||||
|
Loading…
Reference in New Issue
Block a user