mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-08 18:55:00 -04:00
fixes #312
This commit is contained in:
parent
c2cdc1e8a6
commit
40fb5600b2
@ -177,6 +177,7 @@ export default {
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
userProfileImage() {
|
userProfileImage() {
|
||||||
|
this.resetImage();
|
||||||
return `api/users/${this.user.id}/image`;
|
return `api/users/${this.user.id}/image`;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -186,6 +187,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
resetImage() {
|
||||||
|
this.hideImage = false;
|
||||||
|
},
|
||||||
async refreshProfile() {
|
async refreshProfile() {
|
||||||
this.user = await api.users.self();
|
this.user = await api.users.self();
|
||||||
},
|
},
|
||||||
@ -201,7 +205,7 @@ export default {
|
|||||||
this.$store.commit("setToken", newKey.access_token);
|
this.$store.commit("setToken", newKey.access_token);
|
||||||
this.refreshProfile();
|
this.refreshProfile();
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
this.$store.dispatch("requestUserData")
|
this.$store.dispatch("requestUserData");
|
||||||
},
|
},
|
||||||
async changePassword() {
|
async changePassword() {
|
||||||
this.paswordLoading = true;
|
this.paswordLoading = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user