diff --git a/public/react/src/modules/courses/Video/Video.js b/public/react/src/modules/courses/Video/Video.js index 5fe6d99b3..e90156a56 100644 --- a/public/react/src/modules/courses/Video/Video.js +++ b/public/react/src/modules/courses/Video/Video.js @@ -258,9 +258,10 @@ class Video extends Component { console.log(course_identity > 2 && item.user_id === user_id) return ( this.props.Setmyktid(id)} mykt={this.props.mykt} {...this.props} - + {...this.state} {...item} key={item.id} onEditVideo={this.onEditVideo} diff --git a/public/react/src/modules/courses/Video/VideoIndex.js b/public/react/src/modules/courses/Video/VideoIndex.js index 004ec93de..ef0b93ead 100644 --- a/public/react/src/modules/courses/Video/VideoIndex.js +++ b/public/react/src/modules/courses/Video/VideoIndex.js @@ -41,6 +41,7 @@ class VideoIndex extends Component { liveVisible: false, statistics: false, + myktid:null, } } @@ -55,7 +56,11 @@ class VideoIndex extends Component { this.getLiveList(page); } } - + Setmyktid=(id)=>{ + this.setState({ + myktid:id + }) + } componentDidMount = () => { const {search} = this.props.location; const {page} = this.state; @@ -377,6 +382,7 @@ class VideoIndex extends Component { : + this.statisticsy(b)}> @@ -388,6 +394,7 @@ class VideoIndex extends Component { type === "video" ? this.Setmyktid(id)} upload={upload} videos={videos} page={page}