@eeplatform/nuxt-layer-common 1.7.4 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 0985570: Enrollment management - fix enrollment form special program selection
8
+
9
+ ## 1.7.5
10
+
11
+ ### Patch Changes
12
+
13
+ - 18539d9: Enrollment form - update grade level API request setup
14
+
3
15
  ## 1.7.4
4
16
 
5
17
  ### Patch Changes
@@ -164,7 +164,10 @@
164
164
  </v-row>
165
165
  </v-col>
166
166
 
167
- <v-col v-if="enrollment.specialProgram" cols="12">
167
+ <v-col
168
+ v-if="enrollment.specialProgram && selectedProgram.gwa"
169
+ cols="12"
170
+ >
168
171
  <v-row no-gutters>
169
172
  <v-col cols="12">
170
173
  <v-row no-gutters>
@@ -1494,6 +1497,8 @@ const { getAll } = useProgram();
1494
1497
 
1495
1498
  const programs = ref<Array<Record<string, any>>>([]);
1496
1499
 
1500
+ const enrollmentSchool = computed(() => enrollment.value.school);
1501
+
1497
1502
  const { data: getPrograms } = await useLazyAsyncData(
1498
1503
  `get-programs-as-options-enrollment-form`,
1499
1504
  () =>
@@ -1502,8 +1507,7 @@ const { data: getPrograms } = await useLazyAsyncData(
1502
1507
  school: enrollment.value.school,
1503
1508
  }),
1504
1509
  {
1505
- watch: [() => enrollment.value.school],
1506
- immediate: false,
1510
+ watch: [enrollmentSchool],
1507
1511
  }
1508
1512
  );
1509
1513
 
@@ -1536,6 +1540,10 @@ watchEffect(() => {
1536
1540
  });
1537
1541
 
1538
1542
  const hasSpecialProgram = computed(() => {
1543
+ if (!programs.value.length) {
1544
+ return false;
1545
+ }
1546
+
1539
1547
  const juniorHigh = ["grade-7", "grade-8", "grade-9", "grade-10"];
1540
1548
 
1541
1549
  const isJuniorHigh = juniorHigh.includes(enrollment.value.gradeLevel);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.4",
5
+ "version": "1.7.6",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"