potentiall fix #329

This commit is contained in:
hay-kot 2021-05-08 20:24:59 -08:00
commit dde053425b

View file

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