Commit 425f3c94 authored by Rajesh Kumaravel's avatar Rajesh Kumaravel
Browse files

Issue #SB-31023 fix: Disabling Join Course button on Enrollment end date

Showing with 2 additions and 2 deletions
+2 -2
......@@ -115,8 +115,8 @@
<!-- join course, start learning, continue learning, view dashboard buttons -->
<div *ngIf="!showAddGroup && isTrackable">
<div class="certified-course__btn py-8" *ngIf="!enrolledCourse && !viewDashboard">
<button [disabled]="!(courseConsumptionService.enableCourseEntrollment | async)"
[ngClass]="{'sb-btn-disabled': !(courseConsumptionService.enableCourseEntrollment | async)}"
<button [disabled]="!(courseConsumptionService.enableCourseEntrollment | async) || isEnrollmentAllowed(enrollmentEndDate)"
[ngClass]="{'sb-btn-disabled': (!(courseConsumptionService.enableCourseEntrollment | async) || isEnrollmentAllowed(enrollmentEndDate))}"
class="sb-btn sb-btn-secondary sb-btn-normal ml-auto textbook__addbtn" tabindex="0"
(click)="showJoinModal(true); this.logTelemetry(courseHierarchy?.primaryCategory.toLowerCase() === 'course' ? 'join-course' : 'join', courseHierarchy)">{{resourceService?.frmelmnts?.btn?.enroll}}</button>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment