bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/service.js
2017-04-18 19:42:55 +00:00

25 lines
668 B
JavaScript
Executable File

import Breakouts from '/imports/api/breakouts';
import Settings from '/imports/ui/services/settings';
import Auth from '/imports/ui/services/auth/index.js';
const getCaptionsStatus = () => {
const ccSettings = Settings.cc;
return ccSettings ? ccSettings.enabled : false;
};
const getFontSize = () => {
const applicationSettings = Settings.application;
return applicationSettings ? applicationSettings.fontSize : '16px';
};
function meetingIsBreakout() {
const breakouts = Breakouts.find().fetch();
return (breakouts && breakouts.some(b => b.breakoutMeetingId === Auth.meetingID));
}
export {
getCaptionsStatus,
getFontSize,
meetingIsBreakout,
};