@eeplatform/nuxt-layer-common 1.7.3 → 1.7.4

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,11 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 5ec9f73: Fix programming screening form
8
+
3
9
  ## 1.7.3
4
10
 
5
11
  ### Patch Changes
@@ -1650,7 +1650,6 @@ const { data: getGradeLevelReq } = await useLazyAsyncData(
1650
1650
  () => getGradeLevels({ school: enrollment.value.school, limit: 100 }),
1651
1651
  {
1652
1652
  watch: [() => enrollment.value.school],
1653
- immediate: false,
1654
1653
  }
1655
1654
  );
1656
1655
 
@@ -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
  }
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.3",
5
+ "version": "1.7.4",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"