bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/container.jsx
Pedro Beschorner Marin 21a7324f70 feat(guests): notification settings
Avoid showing the guest's notification toggles at client's settings if the guest
policy isn't `ASK_MODERATOR`.
2021-05-30 12:09:33 -03:00

27 lines
722 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import SettingsService from '/imports/ui/services/settings';
import Settings from './component';
import {
getUserRoles,
showGuestNotification,
updateSettings,
getAvailableLocales,
} from './service';
const SettingsContainer = props => (
<Settings {...props} />
);
export default withTracker(() => ({
audio: SettingsService.audio,
dataSaving: SettingsService.dataSaving,
application: SettingsService.application,
updateSettings,
availableLocales: getAvailableLocales(),
isModerator: getUserRoles() === 'MODERATOR',
showGuestNotification: showGuestNotification(),
showToggleLabel: false,
}))(SettingsContainer);