bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/end-meeting-confirmation/container.jsx

27 lines
922 B
React
Raw Normal View History

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
2022-02-15 23:54:55 +08:00
import { withModalMounter } from '/imports/ui/components/common/modal/service';
import { makeCall } from '/imports/ui/services/api';
import EndMeetingComponent from './component';
import Service from './service';
import logger from '/imports/startup/client/logger';
const EndMeetingContainer = props => <EndMeetingComponent {...props} />;
export default withModalMounter(withTracker(({ mountModal }) => ({
closeModal: () => {
mountModal(null);
},
endMeeting: () => {
logger.warn({
logCode: 'moderator_forcing_end_meeting',
extraInfo: { logType: 'user_action' },
}, 'this user clicked on EndMeeting and confirmed, removing everybody from the meeting');
2019-01-18 00:33:43 +08:00
makeCall('endMeeting');
mountModal(null);
},
2021-01-21 04:49:07 +08:00
meetingTitle: Service.getMeetingTitle(),
users: Service.getUsers(),
2021-01-23 03:48:50 +08:00
}))(EndMeetingContainer));