280b32d21d
- Removed the connection-status history from the user list's gear icon and now is opened by the connection-status button. Moderators will render the same modal as before and viewers will only have access to their own data. - Added data-savings shortcut at the connection-status modal. - Added websocket round-trip time.
17 lines
523 B
JavaScript
17 lines
523 B
JavaScript
import React from 'react';
|
|
import { Meteor } from 'meteor/meteor';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import ConnectionStatusService from '../service';
|
|
import ConnectionStatusButtonComponent from './component';
|
|
|
|
const connectionStatusButtonContainer = props => <ConnectionStatusButtonComponent {...props} />;
|
|
|
|
export default withTracker(() => {
|
|
const { connected } = Meteor.status();
|
|
|
|
return {
|
|
connected,
|
|
stats: ConnectionStatusService.getStats(),
|
|
};
|
|
})(connectionStatusButtonContainer);
|