fix(disabledFeatures) add timer

"disableFeatures=timer"
This commit is contained in:
Carlos Henrique 2023-03-01 13:30:30 -03:00 committed by Arthurk12
parent 98aed5d715
commit 0659f15211
2 changed files with 7 additions and 2 deletions

View File

@ -12,7 +12,8 @@ import { colorPrimary } from '/imports/ui/stylesheets/styled-components/palette'
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 { 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)

View File

@ -75,3 +75,7 @@ export function isImportSharedNotesFromBreakoutRoomsEnabled() {
export function isPresentationEnabled() {
return getDisabledFeatures().indexOf('presentation') === -1;
}
export function disabledFeaturesTimer() {
return getDisabledFeatures().indexOf('timer') === -1;
}