refactor(wake-lock): change settings flags

Changes enableWakeLock => wakeLock.enabled to follow the pattern used by
other features and wakeLockEnabled => wakeLock. Also make the necessary
code changes to reference this new settings flags correctly.
This commit is contained in:
Arthurk12 2023-06-14 12:58:18 -03:00
parent 72eee8aa92
commit e5aa8cb0e0
4 changed files with 8 additions and 7 deletions

View File

@ -389,11 +389,11 @@ class ApplicationMenu extends BaseMenu {
</Styled.Col>
<Styled.Col>
<Styled.FormElementRight>
{displaySettingsStatus(settings.wakeLockEnabled)}
{displaySettingsStatus(settings.wakeLock)}
<Toggle
icons={false}
defaultChecked={settings.wakeLockEnabled}
onChange={() => this.handleToggle('wakeLockEnabled')}
defaultChecked={settings.wakeLock}
onChange={() => this.handleToggle('wakeLock')}
ariaLabel={intl.formatMessage(intlMessages.wakeLockEnabledLabel)}
showToggleLabel={showToggleLabel}
/>

View File

@ -45,7 +45,7 @@ WakeLockContainer.propTypes = propTypes;
WakeLockContainer.defaultProps = defaultProps;
export default withTracker(() => {
const wakeLockSettings = Settings.application.wakeLockEnabled;
const wakeLockSettings = Settings.application.wakeLock;
return {
request: Service.request,
release: Service.release,

View File

@ -1,7 +1,7 @@
import logger from '/imports/startup/client/logger';
import deviceInfo from '/imports/utils/deviceInfo';
const WAKELOCK_ENABLED = Meteor.settings.public.app.enableWakeLock;
const WAKELOCK_ENABLED = Meteor.settings.public.app.wakeLock.enabled;
class WakeLock {
constructor() {

View File

@ -59,7 +59,8 @@ public:
# the default logoutUrl matches window.location.origin i.e. bigbluebutton.org for demo.bigbluebutton.org
# in some cases we want only custom logoutUrl to be used when provided on meeting create. Default value: true
askForConfirmationOnLeave: true
enableWakeLock: false
wakeLock:
enabled: false
allowDefaultLogoutUrl: true
allowUserLookup: false
dynamicGuestPolicy: true
@ -176,7 +177,7 @@ public:
raiseHandPushAlerts: true
guestWaitingAudioAlerts: true
guestWaitingPushAlerts: true
wakeLockEnabled: false
wakeLock: false
paginationEnabled: true
whiteboardToolbarAutoHide: false
darkTheme: false