UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

Introduce Valkyrie MissionApplication creation to Launchboard projects page.

Merged Michael Winberry requested to merge Valkyrie into master
All threads resolved!
17 files
+ 3394
2425
Compare changes
  • Side-by-side
  • Inline
Files
17
@@ -59,9 +59,9 @@ export default {
await this.addStudent(courseId, { userId: student.id });
}
},
async addStudentsToCourses(courses, students) {
async addStudentsToCourses(courses, students, pmId) {
for (const { id: courseId } of courses) {
await this.addStudents(courseId, students);
await this.addPendingStudents(courseId, students, pmId);
}
},
async exportCourses() {
@@ -89,4 +89,21 @@ export default {
);
}
},
async getCoursePendingRegistrationsById(courseId) {
return HTTP.get(`/courses/${courseId}/pending-registrations`);
},
async putCoursePendingRegistrationsById(courseId, params) {
return HTTP.put(
`/courses/${courseId}/pending-registrations/acceptance`,
params
);
},
async addPendingStudent(courseId, student) {
return HTTP.post(`/courses/${courseId}/pending-registrations`, student);
},
async addPendingStudents(courseId, students, pmId) {
for (const student of students) {
await this.addPendingStudent(courseId, { userId: student.id, pmId: pmId });
}
},
};
Loading