diff --git a/src/views/Course/Lesson/index.tsx b/src/views/Course/Lesson/index.tsx
index 71ba2a9..65e815f 100644
--- a/src/views/Course/Lesson/index.tsx
+++ b/src/views/Course/Lesson/index.tsx
@@ -5,6 +5,7 @@ import greenPlay from "../../../assets/icons/play-green.png";
import greenDocument from "../../../assets/icons/document-green.png";
import whitePlay from "../../../assets/icons/white-play.png";
import document from "../../../assets/icons/document.png";
+import lock from "../../../assets/icons/lock.png";
import { connect } from "react-redux";
import { book, publicApi } from "../../../redux/actions";
import location from "../../../util/location";
@@ -123,16 +124,16 @@ function Lesson({
))}
-
-
+
+
{data.name}
@@ -142,9 +143,9 @@ function Lesson({
to={"/video/" + data.id}
onClick={() => setCategory(lesson[0].categoryId, data.name)}
>
- {"مشاهده"}
+ مشاهده
- {/* {data.download ? "دانلود" : } */}
+ {data.isFreeVOD ? "دانلود" : }
{selectedLesson === data.id && (
diff --git a/src/views/VideoTube/LessonPlayList/index.tsx b/src/views/VideoTube/LessonPlayList/index.tsx
index e214b59..9069e74 100644
--- a/src/views/VideoTube/LessonPlayList/index.tsx
+++ b/src/views/VideoTube/LessonPlayList/index.tsx
@@ -73,7 +73,7 @@ function LessonPlayList({
}
key={i}
id={"listItem" + video.id}
- onClick={() => setVideoActive(video)}
+ onClick={() => video.isFreeVod ? setVideoActive(video) : {}}
>
{Number(i) + 1}
@@ -105,7 +105,7 @@ function LessonPlayList({
(category?.id === selectedVideo?.id &&
"lesson-playlist__item--active")
}
- onClick={() => setVideoActive(category)}
+ onClick={() => category.isFreeVod ? setVideoActive(category) : ''}
id={"listItem" + category.id}
>