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,
|
settingsLayout,
|
||||||
isRTL,
|
isRTL,
|
||||||
hidePresentation,
|
hidePresentation,
|
||||||
|
autoSwapLayout,
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const { browserName } = browserInfo;
|
const { browserName } = browserInfo;
|
||||||
const { osName } = deviceInfo;
|
const { osName } = deviceInfo;
|
||||||
@ -167,7 +168,7 @@ class App extends Component {
|
|||||||
|
|
||||||
layoutContextDispatch({
|
layoutContextDispatch({
|
||||||
type: ACTIONS.SET_PRESENTATION_IS_OPEN,
|
type: ACTIONS.SET_PRESENTATION_IS_OPEN,
|
||||||
value: !hidePresentation,
|
value: !(autoSwapLayout || hidePresentation),
|
||||||
});
|
});
|
||||||
|
|
||||||
Modal.setAppElement('#app');
|
Modal.setAppElement('#app');
|
||||||
|
@ -231,6 +231,7 @@ export default injectIntl(withModalMounter(withTracker(({ intl, baseControls })
|
|||||||
Meteor.settings.public.presentation.restoreOnUpdate,
|
Meteor.settings.public.presentation.restoreOnUpdate,
|
||||||
),
|
),
|
||||||
hidePresentation: getFromUserSettings('bbb_hide_presentation', LAYOUT_CONFIG.hidePresentation),
|
hidePresentation: getFromUserSettings('bbb_hide_presentation', LAYOUT_CONFIG.hidePresentation),
|
||||||
|
autoSwapLayout: getFromUserSettings('bbb_auto_swap_layout', LAYOUT_CONFIG.autoSwapLayout),
|
||||||
hideActionsBar: getFromUserSettings('bbb_hide_actions_bar', false),
|
hideActionsBar: getFromUserSettings('bbb_hide_actions_bar', false),
|
||||||
isModalOpen: !!getModal(),
|
isModalOpen: !!getModal(),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user