diff --git a/frontend/src/components/Common/SchoolDetailsDialog.vue b/frontend/src/components/Common/SchoolDetailsDialog.vue index 21db47f6..f0717f52 100644 --- a/frontend/src/components/Common/SchoolDetailsDialog.vue +++ b/frontend/src/components/Common/SchoolDetailsDialog.vue @@ -3,37 +3,45 @@ {{ school.displayName }}
{{ school.mincode }}
{{ school?.displayNameNoSpecialChars ?? school.displayName }}
{{ + school.mincode + }} -
+
District {{ getDistrictById(school.districtId)?.districtNumber }} - {{ getDistrictById(school.districtId)?.displayName }}
-
+
School Code and Name {{ school.mincode }} - - {{ school.displayName }} + {{ school?.displayNameNoSpecialChars ?? school.displayName }}
-
+
Open Date {{ $filters.formatSimpleDate(school.openedDate) }}
-
+
Close Date {{ $filters.formatSimpleDate(school.closedDate) }}
-
- Can Issue Transcripts? {{ school.canIssueTranscripts }} +
+ School Category {{ + getInstituteCategoryByCode(school.schoolCategoryCode)?.legacyCode + }} {{ school.schoolCategoryCode }}
-
- Can Issue Certificates? {{ school.canIssueCertificates }} +
+ Issue Transcripts {{ formatFlag(school.canIssueTranscripts) }} +
+
+ Issue Certificates {{ formatFlag(school.canIssueCertificates) }}
@@ -44,6 +52,7 @@ diff --git a/frontend/src/components/StudentProfile/GraduationStatus/GRADStatus.vue b/frontend/src/components/StudentProfile/GraduationStatus/GRADStatus.vue index bd3011d3..e7d7c8b8 100644 --- a/frontend/src/components/StudentProfile/GraduationStatus/GRADStatus.vue +++ b/frontend/src/components/StudentProfile/GraduationStatus/GRADStatus.vue @@ -46,120 +46,10 @@ School of record: - - - - @@ -167,118 +57,10 @@ School at graduation: - - - - diff --git a/frontend/src/store/modules/app.js b/frontend/src/store/modules/app.js index a3033f24..9318b626 100644 --- a/frontend/src/store/modules/app.js +++ b/frontend/src/store/modules/app.js @@ -124,7 +124,7 @@ export const useAppStore = defineStore("app", { console.error(error); } }); - InstituteService.getCategoryCodes().then((response) => { + InstituteService.getSchoolCategoryCodes().then((response) => { try { this.instituteCategoryCodes = response.data; } catch (error) { diff --git a/frontend/src/store/modules/student.js b/frontend/src/store/modules/student.js index ddf90b30..7d80a855 100644 --- a/frontend/src/store/modules/student.js +++ b/frontend/src/store/modules/student.js @@ -608,8 +608,6 @@ export const useStudentStore = defineStore("student", { return this.student.profile.pen; }, getStudentGradStatus() { - // eslint-disable-next-line - console.log(this.student.gradStatus); return this.student.gradStatus; }, getStudentOptionalPrograms() { diff --git a/frontend/src/utils/common.js b/frontend/src/utils/common.js index ac49969f..c0a64dfd 100644 --- a/frontend/src/utils/common.js +++ b/frontend/src/utils/common.js @@ -26,6 +26,21 @@ export function parseStudentStatus(code, studentStatusOptions) { return ""; } +/** + * FORMATTING + */ +export function formatFlag(flag) { + switch (flag) { + case null: + case false: + case "N" || "n": + return "N"; + case true: + case "Y" || "y": + return "Y"; + } +} + /** * SORTING */ @@ -67,13 +82,6 @@ export function isPFSchool(mincode) { } export function isProgramComplete(completionDate, programCode) { - console.debug( - "DEBUG: Program is Complete data:\n completionDate - " + - completionDate + - "\n programCode - " + - programCode - ); - if (programCode === "SCCP") { let today = new Date(); return !!completionDate && new Date(completionDate) <= today;