From 1ffa5355be003340a7318e0befe8646dc4a99a3c Mon Sep 17 00:00:00 2001 From: Marco Realacci Date: Sat, 24 Dec 2022 20:45:02 +0100 Subject: [PATCH] Vue: fix usercard 'name' prop mutation --- webui/src/components/UserCard.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webui/src/components/UserCard.vue b/webui/src/components/UserCard.vue index 40b337e..f3955bb 100644 --- a/webui/src/components/UserCard.vue +++ b/webui/src/components/UserCard.vue @@ -11,6 +11,7 @@ export default { }, data: function () { return { + username: this.name, errorMsg: "aaa", user_followed: this.followed, user_banned: this.banned, @@ -73,7 +74,7 @@ export default { .then(response => { this.show_username_form = false this.$emit('updateInfo') - this.name = this.newUsername + this.username = this.newUsername }) }, }, @@ -89,7 +90,7 @@ export default {