mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
potentiall fix #329
This commit is contained in:
parent
14b6ab7ec7
commit
dde053425b
1 changed files with 6 additions and 10 deletions
|
@ -123,19 +123,12 @@ export default {
|
||||||
},
|
},
|
||||||
showPassword: false,
|
showPassword: false,
|
||||||
loading: false,
|
loading: false,
|
||||||
user: {
|
user: {},
|
||||||
fullName: "",
|
|
||||||
email: "",
|
|
||||||
group: "",
|
|
||||||
admin: false,
|
|
||||||
id: 0,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
userProfileImage() {
|
userProfileImage() {
|
||||||
this.resetImage();
|
|
||||||
return `api/users/${this.user.id}/image`;
|
return `api/users/${this.user.id}/image`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -144,10 +137,13 @@ export default {
|
||||||
this.refreshProfile();
|
this.refreshProfile();
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
watch: {
|
||||||
resetImage() {
|
user() {
|
||||||
this.hideImage = false;
|
this.hideImage = false;
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
methods: {
|
||||||
async refreshProfile() {
|
async refreshProfile() {
|
||||||
this.user = await api.users.self();
|
this.user = await api.users.self();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue