newyslclassrooms
caicai8 5 years ago
parent 6bab311d4b
commit 54226bdf66

@ -203,6 +203,7 @@ class Video extends Component {
const operation = admin || business;
const {course_identity} = this.props.coursedata;
const flagMove = parseInt(course_identity) < 5;
return (
<div>
<EditVideoModal {...this.props} visible={visible} setVisible={this.setVisible}
@ -241,10 +242,12 @@ class Video extends Component {
{
videos && videos.length > 0 ?
<React.Fragment>
<p className="font-grey-9 mt20 mb20 pl5"> <span className="color-orange">{videoData && videoData.count}</span> </p>
<div className="videoContent">
{
videos.map((item, key) => {
console.log(course_identity > 2 && item.user_id === user_id)
return (
<VideoInReviewItem
{...this.props}
@ -256,7 +259,7 @@ class Video extends Component {
getCopyText={this.getCopyText}
operation={operation || item.user_id === user_id}
deleteVideo={(admin || item.user_id === user_id) ? this.deleteVideo : undefined}
moveVideo={videoData && videoData.has_category && flagMove ? ()=>this.moveVideo(item.id,(course_identity > 2 && item.user_id === user_id)):undefined}
moveVideo={videoData && videoData.has_category && flagMove ? ()=>this.moveVideo(item.id,(course_identity > 2 && item.user_id !== user_id)):undefined}
>
</VideoInReviewItem>
)

Loading…
Cancel
Save