@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,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
|
-
|
|
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)
|
|
@@ -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
|
}
|