Skip to content
Snippets Groups Projects
Commit 6c15b9af authored by Isaac Evavold's avatar Isaac Evavold
Browse files

ROENROLL-1671 show cart tab when active term has no in-progress courses

parent 6a23aee8
No related branches found
No related tags found
No related merge requests found
......@@ -168,7 +168,7 @@
<!-- If this term is an active term -->
<ng-container *ngIf="(term$ | async).era === 'active'">
<mat-tab-group (selectedTabChange)="changeVisibleCredits($event)" [selectedIndex]="0">
<mat-tab-group (selectedTabChange)="changeVisibleCredits($event)" [selectedIndex]="(enrolledCourses.length > 0) ? 0 : 1">
<mat-tab [label]="'In Progress (' + enrolledCourses.length + ')'" aria-label="In progress courses">
<ng-container cdkFocusinitial *ngTemplateOutlet="enrolled"></ng-container>
</mat-tab>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment