From 32d22e10474e423013a6134183ba250104fb1e03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Tue, 17 Mar 2020 23:52:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/courses/Video/Video.js | 1 + .../user/usersInfo/video/VideoInReviewItem.js | 39 ++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/public/react/src/modules/courses/Video/Video.js b/public/react/src/modules/courses/Video/Video.js index 229dedb53..5fe6d99b3 100644 --- a/public/react/src/modules/courses/Video/Video.js +++ b/public/react/src/modules/courses/Video/Video.js @@ -269,6 +269,7 @@ class Video extends Component { 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} + > ) diff --git a/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js b/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js index 71b16fab2..fe19c57e6 100644 --- a/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js +++ b/public/react/src/modules/user/usersInfo/video/VideoInReviewItem.js @@ -38,7 +38,7 @@ function VideoInReviewItem (props) { } }, []) - + const username = props.match.params.username function toList() { @@ -48,15 +48,16 @@ function VideoInReviewItem (props) { history.push(`/users/${username}/videos/upload`) } const imgUrl = (!transcoded && !link) ? defaultImg : (cover_url || defaultImg); + return (