File tree Expand file tree Collapse file tree 8 files changed +30
-33
lines changed Expand file tree Collapse file tree 8 files changed +30
-33
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ const deleteUser = () => {
19
19
onFinish : () => form .reset (),
20
20
});
21
21
};
22
-
23
- function focusPasswordInput () {
24
- passwordInput .value .$el .focus ();
25
- }
26
22
</script >
27
23
28
24
<template >
@@ -34,7 +30,6 @@ function focusPasswordInput() {
34
30
:draggable =" false"
35
31
dismissableMask
36
32
modal
37
- @show =" focusPasswordInput"
38
33
>
39
34
<div class =" mb-6" >
40
35
<p class =" m-0 text-muted-color" >
@@ -45,14 +40,13 @@ function focusPasswordInput() {
45
40
</div >
46
41
47
42
<div class =" flex flex-col gap-2" >
48
- <InputText
43
+ <Password
49
44
id =" password"
50
- ref =" password-input"
51
45
v-model =" form.password"
52
- :invalid =" Boolean(form.errors.password)"
53
- type =" password"
54
- placeholder =" Password"
46
+ :invalid =" Boolean(form.errors?.password)"
47
+ :feedback =" false"
55
48
autocomplete =" current-password"
49
+ toggleMask
56
50
autofocus
57
51
required
58
52
fluid
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ export function usePaginatedData(
81
81
}
82
82
83
83
function fetchData ( options : {
84
- data ?: Record < string , any > ,
85
84
onSuccess ?: ( page : Page < PageProps > ) => void ,
86
85
onError ?: ( errors : Errors ) => void ,
87
86
onFinish ?: ( ) => void ,
@@ -98,7 +97,6 @@ export function usePaginatedData(
98
97
...pagination . value ,
99
98
sortField : sorting . value . field ,
100
99
sortOrder : sorting . value . order ,
101
- ...options ?. data
102
100
} ,
103
101
preserveState : true ,
104
102
preserveUrl : false ,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ onMounted(() => {
57
57
id =" email"
58
58
ref =" email-input"
59
59
v-model =" forgotPasswordForm.email"
60
- :invalid =" Boolean(forgotPasswordForm.errors.email)"
60
+ :invalid =" Boolean(forgotPasswordForm.errors? .email)"
61
61
type =" email"
62
62
autocomplete =" username"
63
63
required
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ onMounted(() => {
58
58
id =" email"
59
59
ref =" email-input"
60
60
v-model =" loginForm.email"
61
- :invalid =" Boolean(loginForm.errors.email)"
61
+ :invalid =" Boolean(loginForm.errors? .email)"
62
62
type =" email"
63
63
autocomplete =" username"
64
64
required
@@ -79,7 +79,8 @@ onMounted(() => {
79
79
<Password
80
80
id =" password"
81
81
v-model =" loginForm.password"
82
- :invalid =" Boolean(loginForm.errors.password)"
82
+ :invalid =" Boolean(loginForm.errors?.password)"
83
+ :feedback =" false"
83
84
autocomplete =" current-password"
84
85
toggleMask
85
86
required
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ onMounted(() => {
37
37
id =" name"
38
38
ref =" name-input"
39
39
v-model =" registerForm.name"
40
- :invalid =" Boolean(registerForm.errors.name)"
40
+ :invalid =" Boolean(registerForm.errors? .name)"
41
41
type =" text"
42
42
autocomplete =" name"
43
43
required
@@ -58,7 +58,7 @@ onMounted(() => {
58
58
<InputText
59
59
id =" email"
60
60
v-model =" registerForm.email"
61
- :invalid =" Boolean(registerForm.errors.email)"
61
+ :invalid =" Boolean(registerForm.errors? .email)"
62
62
type =" email"
63
63
autocomplete =" username"
64
64
required
@@ -79,7 +79,7 @@ onMounted(() => {
79
79
<Password
80
80
id =" password"
81
81
v-model =" registerForm.password"
82
- :invalid =" Boolean(registerForm.errors.password)"
82
+ :invalid =" Boolean(registerForm.errors? .password)"
83
83
autocomplete =" new-password"
84
84
toggleMask
85
85
required
@@ -97,12 +97,13 @@ onMounted(() => {
97
97
98
98
<div class =" flex flex-col gap-2" >
99
99
<label for =" password_confirmation" >Confirm Password</label >
100
- <InputText
100
+ <Password
101
101
id =" password_confirmation"
102
102
v-model =" registerForm.password_confirmation"
103
- :invalid =" Boolean(registerForm.errors.password_confirmation)"
104
- type = " password "
103
+ :invalid =" Boolean(registerForm.errors? .password_confirmation)"
104
+ :feedback = " false "
105
105
autocomplete =" new-password"
106
+ toggleMask
106
107
required
107
108
fluid
108
109
/>
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ onMounted(() => {
48
48
id =" email"
49
49
ref =" email-input"
50
50
v-model =" resetPwForm.email"
51
- :invalid =" Boolean(resetPwForm.errors.email)"
51
+ :invalid =" Boolean(resetPwForm.errors? .email)"
52
52
type =" email"
53
53
autocomplete =" username"
54
54
required
@@ -65,11 +65,11 @@ onMounted(() => {
65
65
</div >
66
66
67
67
<div class =" flex flex-col gap-2" >
68
- <label for =" password" >Password</label >
68
+ <label for =" password" >New Password</label >
69
69
<Password
70
70
id =" password"
71
71
v-model =" resetPwForm.password"
72
- :invalid =" Boolean(resetPwForm.errors.password)"
72
+ :invalid =" Boolean(resetPwForm.errors? .password)"
73
73
autocomplete =" new-password"
74
74
toggleMask
75
75
required
@@ -87,12 +87,13 @@ onMounted(() => {
87
87
88
88
<div class =" flex flex-col gap-2" >
89
89
<label for =" password_confirmation" >Confirm Password</label >
90
- <InputText
90
+ <Password
91
91
id =" password_confirmation"
92
92
v-model =" resetPwForm.password_confirmation"
93
- :invalid =" Boolean(resetPwForm.errors.password_confirmation)"
94
- type =" password"
93
+ :invalid =" Boolean(resetPwForm.errors?.password_confirmation)"
95
94
autocomplete =" new-password"
95
+ :feedback =" false"
96
+ toggleMask
96
97
required
97
98
fluid
98
99
/>
Original file line number Diff line number Diff line change @@ -76,13 +76,14 @@ const updatePassword = () => {
76
76
>
77
77
< div class = " flex flex-col gap-2" >
78
78
< label for = " current_password" > Current Password< / label>
79
- < InputText
79
+ < Password
80
80
id= " current_password"
81
81
ref= " current-password-input"
82
82
v- model= " updatePasswordForm.current_password"
83
83
: invalid= " Boolean(updatePasswordForm.errors?.current_password)"
84
- type= " password"
85
84
autocomplete= " current-password"
85
+ : feedback= " false"
86
+ toggleMask
86
87
required
87
88
fluid
88
89
/ >
@@ -118,12 +119,13 @@ const updatePassword = () => {
118
119
< / div>
119
120
< div class = " flex flex-col gap-2" >
120
121
< label for = " password_confirmation" > Confirm Password< / label>
121
- < InputText
122
+ < Password
122
123
id= " password_confirmation"
123
124
v- model= " updatePasswordForm.password_confirmation"
124
125
: invalid= " Boolean(updatePasswordForm.errors?.password_confirmation)"
125
- type= " password"
126
126
autocomplete= " confirm-password"
127
+ : feedback= " false"
128
+ toggleMask
127
129
required
128
130
fluid
129
131
/ >
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ const updateProfileInformation = () => {
73
73
<InputText
74
74
id =" name"
75
75
v-model =" updateProfileForm.name"
76
- :invalid =" Boolean(updateProfileForm.errors.name)"
76
+ :invalid =" Boolean(updateProfileForm.errors? .name)"
77
77
type =" text"
78
78
autocomplete =" name"
79
79
required
@@ -93,7 +93,7 @@ const updateProfileInformation = () => {
93
93
<InputText
94
94
id =" email"
95
95
v-model =" updateProfileForm.email"
96
- :invalid =" Boolean(updateProfileForm.errors.email)"
96
+ :invalid =" Boolean(updateProfileForm.errors? .email)"
97
97
type =" email"
98
98
autocomplete =" username"
99
99
required
You can’t perform that action at this time.
0 commit comments