Merge pull request #6225 from Tainan404/add-meteor-disconnect

Add meteor disconnect
This commit is contained in:
Anton Georgiev 2018-11-08 14:03:04 -05:00 committed by GitHub
commit 423d3a5819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { Meteor } from 'meteor/meteor';
import Button from '/imports/ui/components/button/component';
import { styles } from './styles';
@ -34,6 +35,10 @@ const defaultProps = {
};
class ErrorScreen extends React.PureComponent {
componentDidMount() {
Meteor.disconnect();
}
render() {
const {
intl,

View File

@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { Meteor } from 'meteor/meteor';
import Auth from '/imports/ui/services/auth';
import Button from '/imports/ui/components/button/component';
import getFromUserSettings from '/imports/ui/services/users-settings';
@ -8,6 +9,7 @@ import { logoutRouteHandler } from '/imports/startup/client/auth';
import Rating from './rating/component';
import { styles } from './styles';
const intlMessage = defineMessages({
410: {
id: 'app.meeting.ended',
@ -82,6 +84,11 @@ class MeetingEnded extends React.PureComponent {
this.sendFeedback = this.sendFeedback.bind(this);
this.shouldShowFeedback = getFromUserSettings('askForFeedbackOnLogout', Meteor.settings.public.app.askForFeedbackOnLogout);
}
componentDidMount() {
Meteor.disconnect();
}
setSelectedStar(starNumber) {
this.setState({
selected: starNumber,