Merge pull request #11581 from ramonlsouza/issue-11145
Fixes incorrectly displaying of 'restore presentation' button when presentation is disabled
This commit is contained in:
commit
cc22f8c042
@ -30,6 +30,7 @@ class ActionsBar extends PureComponent {
|
||||
isCaptionsAvailable,
|
||||
isMeteorConnected,
|
||||
isPollingEnabled,
|
||||
isPresentationDisabled,
|
||||
isThereCurrentPresentation,
|
||||
allowExternalVideo,
|
||||
} = this.props;
|
||||
@ -87,7 +88,7 @@ class ActionsBar extends PureComponent {
|
||||
/>
|
||||
</div>
|
||||
<div className={styles.right}>
|
||||
{isLayoutSwapped
|
||||
{isLayoutSwapped && !isPresentationDisabled
|
||||
? (
|
||||
<PresentationOptionsContainer
|
||||
toggleSwapLayout={toggleSwapLayout}
|
||||
|
@ -25,6 +25,7 @@ import MediaService, {
|
||||
|
||||
const ActionsBarContainer = props => <ActionsBar {...props} />;
|
||||
const POLLING_ENABLED = Meteor.settings.public.poll.enabled;
|
||||
const PRESENTATION_DISABLED = Meteor.settings.public.layout.hidePresentation;
|
||||
|
||||
export default withTracker(() => ({
|
||||
amIPresenter: Service.amIPresenter(),
|
||||
@ -46,6 +47,7 @@ export default withTracker(() => ({
|
||||
isCaptionsAvailable: CaptionsService.isCaptionsAvailable(),
|
||||
isMeteorConnected: Meteor.status().connected,
|
||||
isPollingEnabled: POLLING_ENABLED,
|
||||
isPresentationDisabled: PRESENTATION_DISABLED,
|
||||
isThereCurrentPresentation: Presentations.findOne({ meetingId: Auth.meetingID, current: true },
|
||||
{ fields: {} }),
|
||||
allowExternalVideo: Meteor.settings.public.externalVideoPlayer.enabled,
|
||||
|
Loading…
Reference in New Issue
Block a user