Skip to content

Commit

Permalink
fix: make progress graph respect course settings (openedx#1194)
Browse files Browse the repository at this point in the history
(cherry picked from commit 391ea08)
  • Loading branch information
RafayGhafoor authored and Agrendalath committed Oct 15, 2024
1 parent 3ae0bee commit 2765200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/course-home/progress-tab/ProgressTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ProgressTab = () => {
} = useSelector(state => state.courseHome);

const {
gradesFeatureIsFullyLocked,
gradesFeatureIsFullyLocked, disableProgressGraph,
} = useModel('progress', courseId);

const applyLockedOverlay = gradesFeatureIsFullyLocked ? 'locked-overlay' : '';
Expand Down Expand Up @@ -56,7 +56,7 @@ const ProgressTab = () => {
<div className="row w-100 m-0">
{/* Main body */}
<div className="col-12 col-md-8 p-0">
<CourseCompletion />
{!disableProgressGraph && <CourseCompletion />}
{!wideScreen && isVisible('CertificateStatus') && <CertificateStatus />}
{isVisible('Grades') && <CourseGrade />}
{isVisible('GradeBreakdown') && (
Expand Down

0 comments on commit 2765200

Please sign in to comment.