Merge pull request #16783 from Scroody/I-16777
fix: Propagate layout and layout setting don't show up when disabled features is enabled as a custom parameter.
This commit is contained in:
commit
d8b5f944f4
@ -11,6 +11,7 @@ import BBBMenu from '/imports/ui/components/common/menu/component';
|
||||
import Styled from './styles';
|
||||
import { colorPrimary } from '/imports/ui/stylesheets/styled-components/palette';
|
||||
import { PANELS, ACTIONS, LAYOUT_TYPE } from '../../layout/enums';
|
||||
import {isLayoutsEnabled} from '/imports/ui/services/features';
|
||||
|
||||
const propTypes = {
|
||||
amIPresenter: PropTypes.bool.isRequired,
|
||||
@ -218,22 +219,25 @@ class ActionsDropdown extends PureComponent {
|
||||
})
|
||||
}
|
||||
|
||||
if (amIPresenter && showPushLayout) {
|
||||
if (amIPresenter && showPushLayout && isLayoutsEnabled()) {
|
||||
actions.push({
|
||||
icon: 'send',
|
||||
label: intl.formatMessage(intlMessages.propagateLayoutLabel),
|
||||
key: 'propagate layout',
|
||||
onClick: amIPresenter ? setMeetingLayout : setPushLayout,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if (isLayoutsEnabled()){
|
||||
actions.push({
|
||||
icon: 'send',
|
||||
label: intl.formatMessage(intlMessages.layoutModal),
|
||||
key: 'layoutModal',
|
||||
onClick: () => mountModal(<LayoutModalContainer {...this.props} />),
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user