@eeplatform/nuxt-layer-common 1.7.3 → 1.7.5
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.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 18539d9: Enrollment form - update grade level API request setup
|
|
8
|
+
|
|
9
|
+
## 1.7.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5ec9f73: Fix programming screening form
|
|
14
|
+
|
|
3
15
|
## 1.7.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1494,6 +1494,8 @@ const { getAll } = useProgram();
|
|
|
1494
1494
|
|
|
1495
1495
|
const programs = ref<Array<Record<string, any>>>([]);
|
|
1496
1496
|
|
|
1497
|
+
const enrollmentSchool = computed(() => enrollment.value.school);
|
|
1498
|
+
|
|
1497
1499
|
const { data: getPrograms } = await useLazyAsyncData(
|
|
1498
1500
|
`get-programs-as-options-enrollment-form`,
|
|
1499
1501
|
() =>
|
|
@@ -1502,8 +1504,7 @@ const { data: getPrograms } = await useLazyAsyncData(
|
|
|
1502
1504
|
school: enrollment.value.school,
|
|
1503
1505
|
}),
|
|
1504
1506
|
{
|
|
1505
|
-
watch: [
|
|
1506
|
-
immediate: false,
|
|
1507
|
+
watch: [enrollmentSchool],
|
|
1507
1508
|
}
|
|
1508
1509
|
);
|
|
1509
1510
|
|
|
@@ -1650,7 +1651,6 @@ const { data: getGradeLevelReq } = await useLazyAsyncData(
|
|
|
1650
1651
|
() => getGradeLevels({ school: enrollment.value.school, limit: 100 }),
|
|
1651
1652
|
{
|
|
1652
1653
|
watch: [() => enrollment.value.school],
|
|
1653
|
-
immediate: false,
|
|
1654
1654
|
}
|
|
1655
1655
|
);
|
|
1656
1656
|
|
|
@@ -117,10 +117,18 @@ export default function useEnrollment() {
|
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
function updateStatusWithId(_id: string, status: string) {
|
|
121
|
+
return $fetch<string>(`/api/basic-education/enrollments/status/id/${_id}`, {
|
|
122
|
+
method: "PATCH",
|
|
123
|
+
body: { status },
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
120
127
|
return {
|
|
121
128
|
enrollment,
|
|
122
129
|
add,
|
|
123
130
|
getAll,
|
|
124
131
|
updateStatusById,
|
|
132
|
+
updateStatusWithId,
|
|
125
133
|
};
|
|
126
134
|
}
|