@eeplatform/nuxt-layer-common 1.7.24 → 1.7.26

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.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 1881219: Use schoolId prop and computed school value
8
+
9
+ ## 1.7.25
10
+
11
+ ### Patch Changes
12
+
13
+ - 94e6f98: Fix get grade level query
14
+
3
15
  ## 1.7.24
4
16
 
5
17
  ### Patch Changes
@@ -1450,6 +1450,10 @@ const prop = defineProps({
1450
1450
  type: String,
1451
1451
  default: "",
1452
1452
  },
1453
+ schoolId: {
1454
+ type: String,
1455
+ default: "",
1456
+ },
1453
1457
  });
1454
1458
 
1455
1459
  import { VMaskInput } from "vuetify/labs/VMaskInput";
@@ -1463,7 +1467,7 @@ const { cookieConfig } = useRuntimeConfig().public;
1463
1467
 
1464
1468
  if (prop.school) {
1465
1469
  setTimeout(() => {
1466
- enrollment.value.schoolId = prop.school ?? "school";
1470
+ enrollment.value.schoolId = prop.schoolId ?? "school";
1467
1471
  }, 1000);
1468
1472
  }
1469
1473
 
@@ -1731,11 +1735,13 @@ const gradeLevelOffering = ref<Record<string, any>[]>([]);
1731
1735
 
1732
1736
  const { getAll: getGradeLevels } = useGradeLevel();
1733
1737
 
1738
+ const theSchool = computed(() => prop.school || enrollment.value.school);
1739
+
1734
1740
  const { data: getGradeLevelReq } = await useLazyAsyncData(
1735
- "get-grade-level-offerings" + enrollment.value.school,
1736
- () => getGradeLevels({ school: enrollment.value.school, limit: 100 }),
1741
+ "get-grade-level-offerings" + theSchool.value,
1742
+ () => getGradeLevels({ school: theSchool.value, limit: 100 }),
1737
1743
  {
1738
- watch: [() => enrollment.value.school],
1744
+ watch: [theSchool],
1739
1745
  }
1740
1746
  );
1741
1747
 
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.24",
5
+ "version": "1.7.26",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"