react-redhat
Advanced tools
@@ -97,3 +97,7 @@ var React = require('react/addons'); | ||
React.createElement("hr", null), | ||
React.createElement(Comments, {caseNumber: caseNumber}) | ||
React.createElement(Comments, { | ||
caseNumber: caseNumber, | ||
caseReviews: c.resource.caseReviews, | ||
remoteSessions: c.resource.remoteSessions, | ||
liveChatTranscripts: c.resource.liveChatTranscripts}) | ||
) | ||
@@ -100,0 +104,0 @@ ); |
@@ -138,8 +138,8 @@ var React = require('react/addons'); | ||
comment_components = comment_components.concat(posSbtPublicComments) | ||
if(_.contains(self.state.displayedResources, 'caseReviews') && (self.props.case.resource.caseReviews)) | ||
comment_components = comment_components.concat(self.props.case.resource.caseReviews) | ||
if(_.contains(self.state.displayedResources, 'remoteSessions') && (self.props.case.resource.remoteSessions)) | ||
comment_components = comment_components.concat(self.props.case.resource.remoteSessions) | ||
if(_.contains(self.state.displayedResources, 'liveChatTranscripts') && (self.props.case.resource.liveChatTranscripts)) | ||
comment_components = comment_components.concat(self.props.case.resource.liveChatTranscripts) | ||
if(_.contains(self.state.displayedResources, 'caseReviews') && (self.props.caseReviews)) | ||
comment_components = comment_components.concat(self.props.caseReviews) | ||
if(_.contains(self.state.displayedResources, 'remoteSessions') && (self.props.remoteSessions)) | ||
comment_components = comment_components.concat(self.props.remoteSessions) | ||
if(_.contains(self.state.displayedResources, 'liveChatTranscripts') && (self.props.liveChatTranscripts)) | ||
comment_components = comment_components.concat(self.props.liveChatTranscripts) | ||
@@ -150,5 +150,5 @@ var checkboxMapping = []; | ||
checkboxMapping.push({name:'publicCommentsNegSbt',value:negSbtPublicComments?negSbtPublicComments.length:0,display:' -SBT Public Comments '}); | ||
checkboxMapping.push({name:'caseReviews',value:self.props.case.resource.caseReviews?self.props.case.resource.caseReviews.length:0,display:' Case Reviews '}); | ||
checkboxMapping.push({name:'remoteSessions',value:self.props.case.resource.remoteSessions?self.props.case.resource.remoteSessions.length:0,display:' Remote Sessions '}); | ||
checkboxMapping.push({name:'liveChatTranscripts',value:self.props.case.resource.liveChatTranscripts?self.props.case.resource.liveChatTranscripts.length:0,display:' Live Chat Transcript(s) '}); | ||
checkboxMapping.push({name:'caseReviews',value:self.props.caseReviews?self.props.caseReviews.length:0,display:' Case Reviews '}); | ||
checkboxMapping.push({name:'remoteSessions',value:self.props.remoteSessions?self.props.remoteSessions.length:0,display:' Remote Sessions '}); | ||
checkboxMapping.push({name:'liveChatTranscripts',value:self.props.liveChatTranscripts?self.props.liveChatTranscripts.length:0,display:' Live Chat Transcript(s) '}); | ||
comment_components.sort(function(a, b){ | ||
@@ -155,0 +155,0 @@ return +moment(b.resource.lastModified) - +moment(a.resource.lastModified); |
{ | ||
"name": "react-redhat", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Bootstrap 3 components build with React", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/redhataccess/react-redhat", |
164304
0.05%3299
0.12%