Skip to content

Commit

Permalink
Merge pull request #1 from simonliuanu/13144-copy-enroll-student
Browse files Browse the repository at this point in the history
[TEAMMATES#13144] copy enroll student
  • Loading branch information
simonliuanu authored Oct 25, 2024
2 parents 4d2d3c9 + c7b26e3 commit 2656142
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,5 +667,18 @@ export class InstructorCourseEnrollPageComponent implements OnInit {
const existingStudentsData = existingStudentsHOTInstance.getData();

newStudentsHOTInstance.loadData(existingStudentsData);

if(!this.isExistingStudentsPresent) {
this.statusMessageService.showErrorToast('No valid existing students to copy.');
return;
}

if(this.isExistingStudentsPanelCollapsed) {
this.statusMessageService.showWarningToast('Please expand existing students.');
return;
} else {
this.statusMessageService.showSuccessToast('Existing students copied successfully.');
}

}
}

0 comments on commit 2656142

Please sign in to comment.