File tree 2 files changed +8
-7
lines changed
stubs/inertia/resources/js/Pages/Profile
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 9
9
<div >
10
10
<div class =" max-w-7xl mx-auto py-10 sm:px-6 lg:px-8" >
11
11
<update-profile-information-form
12
- :name =" $page.user.name"
13
- :email =" $page.user.email" />
12
+ :user =" $page.user" />
14
13
15
14
<jet-section-border />
16
15
Original file line number Diff line number Diff line change 20
20
21
21
<!-- Current Profile Photo -->
22
22
<div class =" mt-2" v-show =" ! photoPreview" >
23
- <img :src =" $page. user.profile_photo_url" alt =" Current Profile Photo" class =" rounded-full h-20 w-20 object-cover" >
23
+ <img :src =" user.profile_photo_url" alt =" Current Profile Photo" class =" rounded-full h-20 w-20 object-cover" >
24
24
</div >
25
25
26
26
<!-- New Profile Photo Preview -->
34
34
Select A New Photo
35
35
</jet-secondary-button >
36
36
37
- <jet-secondary-button type =" button" class =" mt-2" @click.native.prevent =" deletePhoto" v-if =" $page. user.profile_photo_path" >
37
+ <jet-secondary-button type =" button" class =" mt-2" @click.native.prevent =" deletePhoto" v-if =" user.profile_photo_path" >
38
38
Remove Photo
39
39
</jet-secondary-button >
40
40
88
88
JetSecondaryButton,
89
89
},
90
90
91
- props: [' name' , ' email' ],
91
+ props: {
92
+ user: Object ,
93
+ },
92
94
93
95
data () {
94
96
return {
95
97
form: this .$inertia .form ({
96
98
' _method' : ' PUT' ,
97
- name: this .name ,
98
- email: this .email ,
99
+ name: this .user . name ,
100
+ email: this .user . email ,
99
101
photo: null ,
100
102
}, {
101
103
bag: ' updateProfileInformation' ,
You can’t perform that action at this time.
0 commit comments