2020-06-03 03:47:26 +08:00
|
|
|
import React, { PureComponent } from 'react';
|
2018-01-23 00:49:22 +08:00
|
|
|
import PropTypes from 'prop-types';
|
2017-12-15 03:03:34 +08:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
2018-11-05 23:48:57 +08:00
|
|
|
import { Meteor } from 'meteor/meteor';
|
2018-05-09 00:30:00 +08:00
|
|
|
import Auth from '/imports/ui/services/auth';
|
2021-08-25 22:38:35 +08:00
|
|
|
import LearningDashboardService from '../learning-dashboard/service';
|
2020-10-08 17:15:05 +08:00
|
|
|
import allowRedirectToLogoutURL from './service';
|
2018-09-14 02:09:30 +08:00
|
|
|
import getFromUserSettings from '/imports/ui/services/users-settings';
|
2018-11-21 04:13:34 +08:00
|
|
|
import logoutRouteHandler from '/imports/utils/logoutRouteHandler';
|
2018-05-09 00:30:00 +08:00
|
|
|
import Rating from './rating/component';
|
2021-10-30 02:39:32 +08:00
|
|
|
import Styled from './styles';
|
2019-03-01 05:55:38 +08:00
|
|
|
import logger from '/imports/startup/client/logger';
|
2021-10-20 04:35:39 +08:00
|
|
|
import Users from '/imports/api/users';
|
|
|
|
import Meetings from '/imports/api/meetings';
|
2020-06-03 03:47:26 +08:00
|
|
|
import AudioManager from '/imports/ui/services/audio-manager';
|
2020-09-14 23:21:11 +08:00
|
|
|
import { meetingIsBreakout } from '/imports/ui/components/app/service';
|
2022-03-08 02:40:05 +08:00
|
|
|
import { isLearningDashboardEnabled } from '/imports/ui/services/features';
|
2022-02-02 01:08:21 +08:00
|
|
|
import Storage from '/imports/ui/services/storage/session';
|
2018-11-05 23:48:57 +08:00
|
|
|
|
2017-12-15 03:03:34 +08:00
|
|
|
const intlMessage = defineMessages({
|
|
|
|
410: {
|
|
|
|
id: 'app.meeting.ended',
|
|
|
|
description: 'message when meeting is ended',
|
|
|
|
},
|
|
|
|
403: {
|
2018-01-16 04:59:09 +08:00
|
|
|
id: 'app.error.removed',
|
|
|
|
description: 'Message to display when user is removed from the conference',
|
2017-12-15 03:03:34 +08:00
|
|
|
},
|
2018-05-10 02:07:40 +08:00
|
|
|
430: {
|
|
|
|
id: 'app.error.meeting.ended',
|
|
|
|
description: 'user logged conference',
|
|
|
|
},
|
2018-11-05 23:48:57 +08:00
|
|
|
'acl-not-allowed': {
|
|
|
|
id: 'app.error.removed',
|
|
|
|
description: 'Message to display when user is removed from the conference',
|
|
|
|
},
|
2017-12-15 03:03:34 +08:00
|
|
|
messageEnded: {
|
|
|
|
id: 'app.meeting.endedMessage',
|
|
|
|
description: 'message saying to go back to home screen',
|
|
|
|
},
|
2021-03-09 00:05:33 +08:00
|
|
|
messageEndedByUser: {
|
|
|
|
id: 'app.meeting.endedByUserMessage',
|
|
|
|
description: 'message informing who ended the meeting',
|
|
|
|
},
|
2021-07-08 22:51:00 +08:00
|
|
|
messageEndedByNoModeratorSingular: {
|
|
|
|
id: 'app.meeting.endedByNoModeratorMessageSingular',
|
|
|
|
description: 'message informing that the meeting was ended due to no moderator present (singular)',
|
|
|
|
},
|
|
|
|
messageEndedByNoModeratorPlural: {
|
|
|
|
id: 'app.meeting.endedByNoModeratorMessagePlural',
|
|
|
|
description: 'message informing that the meeting was ended due to no moderator present (plural)',
|
|
|
|
},
|
2017-12-15 03:03:34 +08:00
|
|
|
buttonOkay: {
|
2017-12-18 18:53:37 +08:00
|
|
|
id: 'app.meeting.endNotification.ok.label',
|
2017-12-15 03:03:34 +08:00
|
|
|
description: 'label okay for button',
|
|
|
|
},
|
2018-05-09 00:30:00 +08:00
|
|
|
title: {
|
|
|
|
id: 'app.feedback.title',
|
|
|
|
description: 'title for feedback screen',
|
|
|
|
},
|
|
|
|
subtitle: {
|
|
|
|
id: 'app.feedback.subtitle',
|
|
|
|
description: 'subtitle for feedback screen',
|
|
|
|
},
|
|
|
|
textarea: {
|
|
|
|
id: 'app.feedback.textarea',
|
|
|
|
description: 'placeholder for textarea',
|
|
|
|
},
|
|
|
|
confirmDesc: {
|
|
|
|
id: 'app.leaveConfirmation.confirmDesc',
|
|
|
|
description: 'adds context to confim option',
|
|
|
|
},
|
|
|
|
sendLabel: {
|
|
|
|
id: 'app.feedback.sendFeedback',
|
|
|
|
description: 'send feedback button label',
|
|
|
|
},
|
|
|
|
sendDesc: {
|
|
|
|
id: 'app.feedback.sendFeedbackDesc',
|
|
|
|
description: 'adds context to send feedback option',
|
|
|
|
},
|
2019-03-14 22:15:30 +08:00
|
|
|
duplicate_user_in_meeting_eject_reason: {
|
|
|
|
id: 'app.meeting.logout.duplicateUserEjectReason',
|
|
|
|
description: 'message for duplicate users',
|
|
|
|
},
|
2019-03-14 21:25:07 +08:00
|
|
|
not_enough_permission_eject_reason: {
|
2019-03-14 22:15:30 +08:00
|
|
|
id: 'app.meeting.logout.permissionEjectReason',
|
2019-03-14 21:25:07 +08:00
|
|
|
description: 'message for whom was kicked by doing something without permission',
|
|
|
|
},
|
2019-03-13 02:02:52 +08:00
|
|
|
user_requested_eject_reason: {
|
2019-03-14 22:15:30 +08:00
|
|
|
id: 'app.meeting.logout.ejectedFromMeeting',
|
2019-03-13 02:02:52 +08:00
|
|
|
description: 'message when the user is removed by someone',
|
|
|
|
},
|
2022-10-27 00:19:16 +08:00
|
|
|
max_participants_reason: {
|
|
|
|
id: 'app.meeting.logout.maxParticipantsReached',
|
|
|
|
description: 'message when the user is rejected due to max participants limit',
|
|
|
|
},
|
2019-03-14 22:15:30 +08:00
|
|
|
validate_token_failed_eject_reason: {
|
|
|
|
id: 'app.meeting.logout.validateTokenFailedEjectReason',
|
|
|
|
description: 'invalid auth token',
|
|
|
|
},
|
|
|
|
user_inactivity_eject_reason: {
|
|
|
|
id: 'app.meeting.logout.userInactivityEjectReason',
|
2023-01-17 22:30:25 +08:00
|
|
|
description: 'message to whom was kicked by inactivity',
|
2019-03-14 22:15:30 +08:00
|
|
|
},
|
2021-07-16 08:23:16 +08:00
|
|
|
open_activity_report_btn: {
|
2021-08-25 22:38:35 +08:00
|
|
|
id: 'app.learning-dashboard.clickHereToOpen',
|
2021-07-16 08:23:16 +08:00
|
|
|
description: 'description of link to open activity report',
|
|
|
|
},
|
2017-12-15 03:03:34 +08:00
|
|
|
});
|
|
|
|
|
2018-01-23 00:49:22 +08:00
|
|
|
const propTypes = {
|
|
|
|
intl: PropTypes.shape({
|
|
|
|
formatMessage: PropTypes.func.isRequired,
|
|
|
|
}).isRequired,
|
|
|
|
code: PropTypes.string.isRequired,
|
2021-07-09 00:09:25 +08:00
|
|
|
ejectedReason: PropTypes.string,
|
|
|
|
endedReason: PropTypes.string,
|
2021-03-05 21:49:28 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
const defaultProps = {
|
2021-07-09 00:09:25 +08:00
|
|
|
ejectedReason: null,
|
|
|
|
endedReason: null,
|
2022-10-08 03:21:43 +08:00
|
|
|
callback: async () => {},
|
2018-01-23 00:49:22 +08:00
|
|
|
};
|
|
|
|
|
2020-06-03 03:47:26 +08:00
|
|
|
class MeetingEnded extends PureComponent {
|
2018-05-09 00:30:00 +08:00
|
|
|
static getComment() {
|
|
|
|
const textarea = document.getElementById('feedbackComment');
|
|
|
|
const comment = textarea.value;
|
|
|
|
return comment;
|
|
|
|
}
|
2019-01-15 05:39:03 +08:00
|
|
|
|
2018-05-09 00:30:00 +08:00
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
this.state = {
|
|
|
|
selected: 0,
|
2020-10-08 17:15:05 +08:00
|
|
|
dispatched: false,
|
2018-05-09 00:30:00 +08:00
|
|
|
};
|
2019-11-06 05:16:34 +08:00
|
|
|
|
|
|
|
const user = Users.findOne({ userId: Auth.userID });
|
|
|
|
if (user) {
|
|
|
|
this.localUserRole = user.role;
|
|
|
|
}
|
|
|
|
|
2024-04-19 09:44:45 +08:00
|
|
|
const meetingID = user?.meetingId || Auth.meetingID;
|
|
|
|
const meeting = Meetings.findOne({ id: meetingID });
|
2021-03-09 00:05:33 +08:00
|
|
|
if (meeting) {
|
2021-07-08 22:51:00 +08:00
|
|
|
this.endWhenNoModeratorMinutes = meeting.durationProps.endWhenNoModeratorDelayInMinutes;
|
|
|
|
|
2021-03-09 03:45:09 +08:00
|
|
|
const endedBy = Users.findOne({
|
|
|
|
userId: meeting.meetingEndedBy,
|
|
|
|
}, { fields: { name: 1 } });
|
|
|
|
|
|
|
|
if (endedBy) {
|
|
|
|
this.meetingEndedBy = endedBy.name;
|
|
|
|
}
|
2021-03-09 00:05:33 +08:00
|
|
|
}
|
|
|
|
|
2018-05-09 00:30:00 +08:00
|
|
|
this.setSelectedStar = this.setSelectedStar.bind(this);
|
2020-10-08 17:15:05 +08:00
|
|
|
this.confirmRedirect = this.confirmRedirect.bind(this);
|
2018-05-09 00:30:00 +08:00
|
|
|
this.sendFeedback = this.sendFeedback.bind(this);
|
2020-10-08 17:15:05 +08:00
|
|
|
this.shouldShowFeedback = this.shouldShowFeedback.bind(this);
|
2021-07-08 22:51:00 +08:00
|
|
|
this.getEndingMessage = this.getEndingMessage.bind(this);
|
2018-11-05 23:48:57 +08:00
|
|
|
|
2020-06-03 03:47:26 +08:00
|
|
|
AudioManager.exitAudio();
|
2022-02-02 01:08:21 +08:00
|
|
|
Storage.removeItem('getEchoTest');
|
|
|
|
Storage.removeItem('isFirstJoin');
|
2022-10-08 03:21:43 +08:00
|
|
|
this.props.callback().finally(() => {
|
|
|
|
Meteor.disconnect();
|
|
|
|
});
|
2018-11-05 23:48:57 +08:00
|
|
|
}
|
|
|
|
|
2018-05-09 00:30:00 +08:00
|
|
|
setSelectedStar(starNumber) {
|
|
|
|
this.setState({
|
|
|
|
selected: starNumber,
|
|
|
|
});
|
|
|
|
}
|
2018-05-11 04:23:17 +08:00
|
|
|
|
2020-10-08 17:15:05 +08:00
|
|
|
shouldShowFeedback() {
|
|
|
|
const { dispatched } = this.state;
|
|
|
|
return getFromUserSettings('bbb_ask_for_feedback_on_logout', Meteor.settings.public.app.askForFeedbackOnLogout) && !dispatched;
|
|
|
|
}
|
|
|
|
|
|
|
|
confirmRedirect() {
|
2022-03-10 03:08:56 +08:00
|
|
|
if (meetingIsBreakout()) window.close();
|
|
|
|
if (allowRedirectToLogoutURL()) logoutRouteHandler();
|
2020-10-08 17:15:05 +08:00
|
|
|
}
|
|
|
|
|
2021-07-08 22:51:00 +08:00
|
|
|
getEndingMessage() {
|
2022-08-16 04:25:45 +08:00
|
|
|
const { intl, code, ejectedReason, endedReason } = this.props;
|
2021-07-08 22:51:00 +08:00
|
|
|
|
|
|
|
if (endedReason && endedReason === 'ENDED_DUE_TO_NO_MODERATOR') {
|
|
|
|
return this.endWhenNoModeratorMinutes === 1
|
|
|
|
? intl.formatMessage(intlMessage.messageEndedByNoModeratorSingular)
|
|
|
|
: intl.formatMessage(intlMessage.messageEndedByNoModeratorPlural, { 0: this.endWhenNoModeratorMinutes });
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.meetingEndedBy) {
|
|
|
|
return intl.formatMessage(intlMessage.messageEndedByUser, { 0: this.meetingEndedBy });
|
|
|
|
}
|
|
|
|
|
2022-08-16 04:25:45 +08:00
|
|
|
if (intlMessage[ejectedReason]) {
|
|
|
|
return intl.formatMessage(intlMessage[ejectedReason]);
|
|
|
|
}
|
|
|
|
|
2021-07-08 22:51:00 +08:00
|
|
|
if (intlMessage[code]) {
|
|
|
|
return intl.formatMessage(intlMessage[code]);
|
|
|
|
}
|
|
|
|
|
2021-07-20 01:34:00 +08:00
|
|
|
return intl.formatMessage(intlMessage[430]);
|
2021-07-08 22:51:00 +08:00
|
|
|
}
|
|
|
|
|
2020-10-08 17:15:05 +08:00
|
|
|
sendFeedback() {
|
|
|
|
const {
|
|
|
|
selected,
|
|
|
|
} = this.state;
|
2018-05-09 00:30:00 +08:00
|
|
|
|
2019-07-12 04:51:09 +08:00
|
|
|
const { fullname } = Auth.credentials;
|
|
|
|
|
2018-05-09 00:30:00 +08:00
|
|
|
const message = {
|
|
|
|
rating: selected,
|
|
|
|
userId: Auth.userID,
|
2019-07-12 04:51:09 +08:00
|
|
|
userName: fullname,
|
2018-05-11 04:23:17 +08:00
|
|
|
authToken: Auth.token,
|
2018-05-09 00:30:00 +08:00
|
|
|
meetingId: Auth.meetingID,
|
|
|
|
comment: MeetingEnded.getComment(),
|
2019-11-06 05:16:34 +08:00
|
|
|
userRole: this.localUserRole,
|
2018-05-09 00:30:00 +08:00
|
|
|
};
|
2020-11-19 04:31:36 +08:00
|
|
|
const url = './feedback';
|
2018-05-10 02:07:40 +08:00
|
|
|
const options = {
|
|
|
|
method: 'POST',
|
|
|
|
body: JSON.stringify(message),
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
2019-03-01 05:55:38 +08:00
|
|
|
// client logger
|
2019-06-29 05:45:50 +08:00
|
|
|
logger.info({ logCode: 'feedback_functionality', extraInfo: { feedback: message } }, 'Feedback component');
|
2019-03-01 05:55:38 +08:00
|
|
|
|
2020-10-08 17:15:05 +08:00
|
|
|
this.setState({
|
|
|
|
dispatched: true,
|
|
|
|
});
|
|
|
|
|
2022-04-04 21:09:40 +08:00
|
|
|
fetch(url, options).then(() => {
|
2022-04-04 22:02:05 +08:00
|
|
|
if (this.localUserRole === 'VIEWER') {
|
2022-04-04 21:09:40 +08:00
|
|
|
const REDIRECT_WAIT_TIME = 5000;
|
|
|
|
setTimeout(() => {
|
|
|
|
logoutRouteHandler();
|
|
|
|
}, REDIRECT_WAIT_TIME);
|
|
|
|
}
|
|
|
|
}).catch((e) => {
|
2022-03-30 01:08:59 +08:00
|
|
|
logger.warn({
|
|
|
|
logCode: 'user_feedback_not_sent_error',
|
|
|
|
extraInfo: {
|
|
|
|
errorName: e.name,
|
|
|
|
errorMessage: e.message,
|
|
|
|
},
|
|
|
|
}, `Unable to send feedback: ${e.message}`);
|
2022-03-10 03:08:56 +08:00
|
|
|
});
|
2018-05-09 00:30:00 +08:00
|
|
|
}
|
|
|
|
|
2020-10-08 17:15:05 +08:00
|
|
|
renderNoFeedback() {
|
2021-07-09 00:09:25 +08:00
|
|
|
const { intl, code, ejectedReason } = this.props;
|
2020-10-08 17:15:05 +08:00
|
|
|
|
2021-08-27 02:04:06 +08:00
|
|
|
const { locale } = intl;
|
|
|
|
|
2021-07-09 00:09:25 +08:00
|
|
|
const logMessage = ejectedReason === 'user_requested_eject_reason' ? 'User removed from the meeting' : 'Meeting ended component, no feedback configured';
|
|
|
|
logger.info({ logCode: 'meeting_ended_code', extraInfo: { endedCode: code, reason: ejectedReason } }, logMessage);
|
2020-10-08 17:15:05 +08:00
|
|
|
|
|
|
|
return (
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.Parent>
|
|
|
|
<Styled.Modal>
|
|
|
|
<Styled.Content>
|
|
|
|
<Styled.Title data-test="meetingEndedModalTitle">
|
2021-07-08 22:51:00 +08:00
|
|
|
{this.getEndingMessage()}
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Title>
|
2020-10-08 17:15:05 +08:00
|
|
|
{!allowRedirectToLogoutURL() ? null : (
|
|
|
|
<div>
|
2021-07-16 08:23:16 +08:00
|
|
|
{
|
2021-08-25 22:38:35 +08:00
|
|
|
LearningDashboardService.isModerator()
|
2022-03-08 02:40:05 +08:00
|
|
|
&& isLearningDashboardEnabled() === true
|
2021-10-15 01:00:25 +08:00
|
|
|
// Always set cookie in case Dashboard is already opened
|
|
|
|
&& LearningDashboardService.setLearningDashboardCookie() === true
|
2021-07-16 08:23:16 +08:00
|
|
|
? (
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.Text>
|
|
|
|
<Styled.MeetingEndedButton
|
2021-07-16 08:23:16 +08:00
|
|
|
icon="multi_whiteboard"
|
|
|
|
color="default"
|
2021-08-31 01:54:51 +08:00
|
|
|
onClick={() => LearningDashboardService.openLearningDashboardUrl(locale)}
|
2021-07-16 08:23:16 +08:00
|
|
|
label={intl.formatMessage(intlMessage.open_activity_report_btn)}
|
|
|
|
description={intl.formatMessage(intlMessage.open_activity_report_btn)}
|
|
|
|
/>
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Text>
|
2021-07-16 08:23:16 +08:00
|
|
|
) : null
|
|
|
|
}
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.Text>
|
2020-10-08 17:15:05 +08:00
|
|
|
{intl.formatMessage(intlMessage.messageEnded)}
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Text>
|
2020-10-08 17:15:05 +08:00
|
|
|
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.MeetingEndedButton
|
2020-10-08 17:15:05 +08:00
|
|
|
color="primary"
|
|
|
|
onClick={this.confirmRedirect}
|
|
|
|
label={intl.formatMessage(intlMessage.buttonOkay)}
|
|
|
|
description={intl.formatMessage(intlMessage.confirmDesc)}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
)}
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Content>
|
|
|
|
</Styled.Modal>
|
|
|
|
</Styled.Parent>
|
2020-10-08 17:15:05 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
renderFeedback() {
|
2021-07-09 00:09:25 +08:00
|
|
|
const { intl, code, ejectedReason } = this.props;
|
2019-01-15 05:39:03 +08:00
|
|
|
const {
|
|
|
|
selected,
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
const noRating = selected <= 0;
|
2019-03-20 03:55:12 +08:00
|
|
|
|
2021-07-09 00:09:25 +08:00
|
|
|
const logMessage = ejectedReason === 'user_requested_eject_reason' ? 'User removed from the meeting' : 'Meeting ended component, feedback allowed';
|
|
|
|
logger.info({ logCode: 'meeting_ended_code', extraInfo: { endedCode: code, reason: ejectedReason } }, logMessage);
|
2019-03-20 03:55:12 +08:00
|
|
|
|
2018-01-23 00:49:22 +08:00
|
|
|
return (
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.Parent>
|
|
|
|
<Styled.Modal data-test="meetingEndedModal">
|
|
|
|
<Styled.Content>
|
|
|
|
<Styled.Title>
|
2021-07-08 22:51:00 +08:00
|
|
|
{this.getEndingMessage()}
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Title>
|
|
|
|
<Styled.Text>
|
2020-10-08 17:15:05 +08:00
|
|
|
{this.shouldShowFeedback()
|
2018-05-09 00:30:00 +08:00
|
|
|
? intl.formatMessage(intlMessage.subtitle)
|
|
|
|
: intl.formatMessage(intlMessage.messageEnded)}
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Text>
|
2020-10-08 17:15:05 +08:00
|
|
|
|
|
|
|
{this.shouldShowFeedback() ? (
|
2020-05-15 22:48:28 +08:00
|
|
|
<div data-test="rating">
|
2018-05-09 00:30:00 +08:00
|
|
|
<Rating
|
|
|
|
total="5"
|
|
|
|
onRate={this.setSelectedStar}
|
|
|
|
/>
|
2019-01-15 05:39:03 +08:00
|
|
|
{!noRating ? (
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.TextArea
|
2019-01-15 05:39:03 +08:00
|
|
|
rows="5"
|
|
|
|
id="feedbackComment"
|
|
|
|
placeholder={intl.formatMessage(intlMessage.textarea)}
|
|
|
|
aria-describedby="textareaDesc"
|
|
|
|
/>
|
|
|
|
) : null}
|
2018-05-09 00:30:00 +08:00
|
|
|
</div>
|
2021-06-05 00:37:07 +08:00
|
|
|
) : null}
|
2022-03-10 03:08:56 +08:00
|
|
|
{noRating ? (
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.MeetingEndedButton
|
2020-10-08 17:15:05 +08:00
|
|
|
color="primary"
|
2022-03-10 03:08:56 +08:00
|
|
|
onClick={() => this.setState({ dispatched: true })}
|
2020-10-08 17:15:05 +08:00
|
|
|
label={intl.formatMessage(intlMessage.buttonOkay)}
|
|
|
|
description={intl.formatMessage(intlMessage.confirmDesc)}
|
|
|
|
/>
|
|
|
|
) : null}
|
2022-03-10 03:08:56 +08:00
|
|
|
{!noRating ? (
|
2021-10-30 02:39:32 +08:00
|
|
|
<Styled.MeetingEndedButton
|
2020-10-08 17:15:05 +08:00
|
|
|
color="primary"
|
|
|
|
onClick={this.sendFeedback}
|
|
|
|
label={intl.formatMessage(intlMessage.sendLabel)}
|
|
|
|
description={intl.formatMessage(intlMessage.sendDesc)}
|
|
|
|
/>
|
|
|
|
) : null}
|
2021-10-30 02:39:32 +08:00
|
|
|
</Styled.Content>
|
|
|
|
</Styled.Modal>
|
|
|
|
</Styled.Parent>
|
2018-01-23 00:49:22 +08:00
|
|
|
);
|
|
|
|
}
|
2020-10-08 17:15:05 +08:00
|
|
|
|
|
|
|
render() {
|
|
|
|
if (this.shouldShowFeedback()) return this.renderFeedback();
|
|
|
|
return this.renderNoFeedback();
|
|
|
|
}
|
2018-01-23 00:49:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
MeetingEnded.propTypes = propTypes;
|
2021-03-05 21:49:28 +08:00
|
|
|
MeetingEnded.defaultProps = defaultProps;
|
2017-12-12 21:08:43 +08:00
|
|
|
|
2018-10-04 00:14:10 +08:00
|
|
|
export default injectIntl(MeetingEnded);
|