Merge pull request #14771 from ramonlsouza/issue-14766
fix: "Autoswaplayout: true" doesn't work as expected
This commit is contained in:
commit
72f1b66e6e
@ -154,6 +154,7 @@ class App extends Component {
|
||||
settingsLayout,
|
||||
isRTL,
|
||||
hidePresentation,
|
||||
autoSwapLayout,
|
||||
} = this.props;
|
||||
const { browserName } = browserInfo;
|
||||
const { osName } = deviceInfo;
|
||||
@ -167,7 +168,7 @@ class App extends Component {
|
||||
|
||||
layoutContextDispatch({
|
||||
type: ACTIONS.SET_PRESENTATION_IS_OPEN,
|
||||
value: !hidePresentation,
|
||||
value: !(autoSwapLayout || hidePresentation),
|
||||
});
|
||||
|
||||
Modal.setAppElement('#app');
|
||||
|
@ -231,6 +231,7 @@ export default injectIntl(withModalMounter(withTracker(({ intl, baseControls })
|
||||
Meteor.settings.public.presentation.restoreOnUpdate,
|
||||
),
|
||||
hidePresentation: getFromUserSettings('bbb_hide_presentation', LAYOUT_CONFIG.hidePresentation),
|
||||
autoSwapLayout: getFromUserSettings('bbb_auto_swap_layout', LAYOUT_CONFIG.autoSwapLayout),
|
||||
hideActionsBar: getFromUserSettings('bbb_hide_actions_bar', false),
|
||||
isModalOpen: !!getModal(),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user