fix(disabledFeatures) add timer
"disableFeatures=timer"
This commit is contained in:
parent
98aed5d715
commit
0659f15211
@ -13,6 +13,7 @@ import { PANELS, ACTIONS, LAYOUT_TYPE } from '../../layout/enums';
|
||||
import { uniqueId } from '/imports/utils/string-utils';
|
||||
import { isPresentationEnabled } from '/imports/ui/services/features';
|
||||
import { isLayoutsEnabled } from '/imports/ui/services/features';
|
||||
import { disabledFeaturesTimer } from '/imports/ui/services/features';
|
||||
|
||||
const propTypes = {
|
||||
amIPresenter: PropTypes.bool.isRequired,
|
||||
@ -239,7 +240,7 @@ class ActionsDropdown extends PureComponent {
|
||||
})
|
||||
}
|
||||
|
||||
if (amIModerator && isTimerEnabled) {
|
||||
if (amIModerator && isTimerEnabled && disabledFeaturesTimer()) {
|
||||
actions.push({
|
||||
icon: "time",
|
||||
label: isTimerActive ? intl.formatMessage(intlMessages.deactivateTimerLabel)
|
||||
|
@ -75,3 +75,7 @@ export function isImportSharedNotesFromBreakoutRoomsEnabled() {
|
||||
export function isPresentationEnabled() {
|
||||
return getDisabledFeatures().indexOf('presentation') === -1;
|
||||
}
|
||||
|
||||
export function disabledFeaturesTimer() {
|
||||
return getDisabledFeatures().indexOf('timer') === -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user