@7365admin1/layer-common 1.11.39 → 1.11.40

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
  # @iservice365/layer-common
2
2
 
3
+ ## 1.11.40
4
+
5
+ ### Patch Changes
6
+
7
+ - 91ae5da: Update Verification Status
8
+
3
9
  ## 1.11.39
4
10
 
5
11
  ### Patch Changes
@@ -1,3 +1,4 @@
1
+ <!-- LayoutNavigationDrawer.vue -->
1
2
  <template>
2
3
  <v-navigation-drawer
3
4
  v-model="drawer"
@@ -19,6 +20,7 @@
19
20
  v-for="(item, index) in props.navigationItems"
20
21
  :key="`${item.title}-${index}`"
21
22
  location="right"
23
+ :disabled="!item.disabled"
22
24
  >
23
25
  <template #activator="{ props: tooltipProps }">
24
26
  <div v-bind="tooltipProps">
@@ -35,10 +37,7 @@
35
37
  </div>
36
38
  </template>
37
39
 
38
- <!-- TOOLTIP ONLY WHEN DISABLED -->
39
- <span v-if="item.disabled">
40
- Please complete onboarding first
41
- </span>
40
+ <span>Please complete onboarding first</span>
42
41
  </v-tooltip>
43
42
 
44
43
  <!-- SERVICES SLOT -->
@@ -58,9 +57,6 @@ const emit = defineEmits(['navigate'])
58
57
  const { drawer } = useLocal()
59
58
  const { APP_NAME } = useRuntimeConfig().public
60
59
 
61
- /**
62
- * GLOBAL CLICK CONTROL
63
- */
64
60
  const handleClick = (item: any) => {
65
61
  if (item.disabled) return
66
62
  emit('navigate', item)
@@ -924,6 +924,11 @@ async function submit() {
924
924
  }
925
925
  }
926
926
 
927
+ // add register status when registering unregistered visitor
928
+ if (prop.mode === 'register'){
929
+ payload.status = "registered"
930
+ }
931
+
927
932
  try {
928
933
  let res;
929
934
  if (prop.mode === "add") {
@@ -141,6 +141,13 @@ export default function useLocalAuth() {
141
141
  });
142
142
  }
143
143
 
144
+ async function updateVerificationStatus(id: string, status: string) {
145
+ return useNuxtApp().$api<Record<string, any>>(`/api/auth/verification/status`, {
146
+ method: "PATCH",
147
+ body: { id, status },
148
+ })
149
+ }
150
+
144
151
  function signUp(email: string, referral: string) {
145
152
  return useNuxtApp().$api<Record<string, any>>("/api/auth/sign-up", {
146
153
  method: "POST",
@@ -159,6 +166,7 @@ export default function useLocalAuth() {
159
166
  resetPassword,
160
167
  currentUser,
161
168
  verify,
169
+ updateVerificationStatus,
162
170
  signUp,
163
171
  };
164
172
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.11.39",
5
+ "version": "1.11.40",
6
6
  "author": "7365admin1",
7
7
  "main": "./nuxt.config.ts",
8
8
  "publishConfig": {