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.
19 lines
772 B
JavaScript
19 lines
772 B
JavaScript
import React from 'react';
|
|
import _ from 'lodash';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import { withModalMounter } from '/imports/ui/components/modal/service';
|
|
import Settings from '/imports/ui/services/settings';
|
|
import ConnectionStatusService from '../service';
|
|
import ConnectionStatusComponent from './component';
|
|
|
|
const connectionStatusContainer = props => <ConnectionStatusComponent {...props} />;
|
|
|
|
export default withModalMounter(withTracker(({ mountModal }) => ({
|
|
closeModal: (dataSaving, intl) => {
|
|
ConnectionStatusService.updateDataSavingSettings(dataSaving, intl);
|
|
mountModal(null);
|
|
},
|
|
connectionStatus: ConnectionStatusService.getConnectionStatus(),
|
|
dataSaving: _.clone(Settings.dataSaving),
|
|
}))(connectionStatusContainer));
|