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:
parent
72eee8aa92
commit
e5aa8cb0e0
@ -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}
|
||||
/>
|
||||
|
@ -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,
|
||||
|
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user