3840d4ff63
Remove padIds from the closed captions MongoDB collection subscription. Users now have to fetch the padId from Meteor when needed. Meteor is responsible for checking the user's access level and return the proper id.
23 lines
418 B
JavaScript
23 lines
418 B
JavaScript
import React from 'react';
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
|
import CaptionsService from './service';
|
|
import Captions from './component';
|
|
|
|
const CaptionsContainer = props => (
|
|
<Captions {...props} />
|
|
);
|
|
|
|
export default withTracker(() => {
|
|
const {
|
|
locale,
|
|
revs,
|
|
data,
|
|
} = CaptionsService.getCaptionsData();
|
|
|
|
return {
|
|
locale,
|
|
revs,
|
|
data,
|
|
};
|
|
})(CaptionsContainer);
|