Skip to content

Commit

Permalink
Pull schoolOfRecord and schoolAtGrad from AppStore
Browse files Browse the repository at this point in the history
  • Loading branch information
KentoHyono committed Jan 13, 2025
1 parent 4ee9f26 commit 0a659de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions frontend/src/components/Batch/Forms/FormInputs/StudentInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ import TRAXService from "@/services/TRAXService.js";
import SchoolService from "@/services/SchoolService.js";
import StudentService from "@/services/StudentService.js";
import GraduationReportService from "@/services/GraduationReportService.js";
import { useAppStore } from "@/store/modules/app";
import { useVuelidate } from "@vuelidate/core";
import { mapActions, mapState } from "pinia";
import { useBatchRequestFormStore } from "../../../../store/modules/batchRequestFormStore";
Expand Down Expand Up @@ -182,8 +183,8 @@ export default {
lastName: student.data[0].legalLastName,
dob: student.data[0].dob,
status: studentGRADStatus.data.studentStatusName,
schoolOfRecord: studentGRADStatus.data.schoolName,
schoolAtGrad: studentGRADStatus.data.schoolAtGradName,
schoolOfRecord: this.getSchoolById(studentGRADStatus.data.schoolOfRecordId)?.displayNameNoSpecialChars ?? this.getSchoolById(studentGRADStatus.data.schoolOfRecordId)?.displayName,
schoolAtGrad: this.getSchoolById(studentGRADStatus.data.schoolAtGradId)?.displayNameNoSpecialChars ?? this.getSchoolById(studentGRADStatus.data.schoolAtGradId)?.displayName,
program: studentGRADStatus.data.program,
};
if (studentGRADStatus.data.studentStatusName == "Merged") {
Expand Down Expand Up @@ -248,13 +249,14 @@ export default {
},
computed: {
computed: {
...mapState(useBatchRequestFormStore, [
...mapState(useBatchRequestFormStore, [
"getBatchRequest",
"getBatchRunTime",
"getCredential",
]),
},
...mapState(useAppStore, {
getSchoolById: "getSchoolById"
}),
isEmpty() {
return this.students.length > 0;
},
Expand Down

0 comments on commit 0a659de

Please sign in to comment.