@eeplatform/nuxt-layer-common 1.7.26 → 1.7.27
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 +6 -0
- package/components/EnrollmentForm.vue +12 -7
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -123,6 +123,8 @@
|
|
|
123
123
|
v-model="enrollment.gradeLevel"
|
|
124
124
|
:rules="[requiredRule]"
|
|
125
125
|
:items="gradeLevelOffering"
|
|
126
|
+
:loading="loadingGradeLevel"
|
|
127
|
+
:disabled="loadingGradeLevel"
|
|
126
128
|
></v-autocomplete>
|
|
127
129
|
</v-col>
|
|
128
130
|
</v-row>
|
|
@@ -1737,13 +1739,16 @@ const { getAll: getGradeLevels } = useGradeLevel();
|
|
|
1737
1739
|
|
|
1738
1740
|
const theSchool = computed(() => prop.school || enrollment.value.school);
|
|
1739
1741
|
|
|
1740
|
-
const { data: getGradeLevelReq } =
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1742
|
+
const { data: getGradeLevelReq, status: statusGradeLevel } =
|
|
1743
|
+
await useLazyAsyncData(
|
|
1744
|
+
"get-grade-level-offerings" + theSchool.value,
|
|
1745
|
+
() => getGradeLevels({ school: theSchool.value, limit: 100 }),
|
|
1746
|
+
{
|
|
1747
|
+
watch: [theSchool],
|
|
1748
|
+
}
|
|
1749
|
+
);
|
|
1750
|
+
|
|
1751
|
+
const loadingGradeLevel = computed(() => statusGradeLevel.value === "pending");
|
|
1747
1752
|
|
|
1748
1753
|
watchEffect(() => {
|
|
1749
1754
|
if (getGradeLevelReq.value && getGradeLevelReq.value.items) {
|