pukaad-ui-lib 1.283.0 → 1.284.0
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/dist/module.json
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Modal
|
|
3
|
-
|
|
2
|
+
<Modal
|
|
3
|
+
:title="props.title"
|
|
4
|
+
:loading="loading"
|
|
5
|
+
v-model="isOpen"
|
|
6
|
+
@close="emit('close')"
|
|
7
|
+
@submit="handleSubmit"
|
|
8
|
+
width="425px"
|
|
9
|
+
>
|
|
4
10
|
<div class="flex flex-col gap-2">
|
|
5
|
-
<InputPassword
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
<InputPassword
|
|
12
|
+
disabled-forgot-password
|
|
13
|
+
new
|
|
14
|
+
required
|
|
15
|
+
label="รหัสผ่าน"
|
|
16
|
+
placeholder="กรอกรหัสผ่าน"
|
|
17
|
+
v-model="password"
|
|
18
|
+
/>
|
|
19
|
+
<InputCheckbox
|
|
20
|
+
v-if="!props.disabledForceLogout"
|
|
21
|
+
label="ออกจากระบบ Pukaad ในอุปกรณ์อื่นๆทั้งหมด"
|
|
22
|
+
v-model="logoutAll"
|
|
23
|
+
/>
|
|
9
24
|
</div>
|
|
10
25
|
<template #footer="{ meta }">
|
|
11
|
-
<Button
|
|
26
|
+
<Button
|
|
27
|
+
type="submit"
|
|
28
|
+
color="primary"
|
|
29
|
+
class="w-full"
|
|
30
|
+
:disabled="!meta.valid"
|
|
31
|
+
>
|
|
12
32
|
{{ props.confirmText }}
|
|
13
33
|
</Button>
|
|
14
34
|
</template>
|
|
@@ -92,9 +112,6 @@ const handleSubmit = async () => {
|
|
|
92
112
|
} else if (!props.loginToken) {
|
|
93
113
|
$toast?.error?.("\u0E44\u0E21\u0E48\u0E1E\u0E1A login token");
|
|
94
114
|
return;
|
|
95
|
-
} else if (!props.oldPassword) {
|
|
96
|
-
$toast?.error?.("\u0E44\u0E21\u0E48\u0E1E\u0E1A \u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19\u0E40\u0E14\u0E34\u0E21");
|
|
97
|
-
return;
|
|
98
115
|
}
|
|
99
116
|
loading.value = true;
|
|
100
117
|
try {
|