Fix profile view follow & ban status, Add ban status in GET profile API call

This commit is contained in:
Marco Realacci 2022-12-12 12:37:30 +01:00
parent 00e6b3de7b
commit 4c4481393d
8 changed files with 39 additions and 16 deletions

View file

@ -2,6 +2,14 @@
export default {
props: ["user_id", "name", "followed", "banned", "my_id", "show_new_post"],
watch: {
banned: function(new_val, old_val) {
this.user_banned = new_val;
},
followed: function(new_val, old_val) {
this.user_followed = new_val;
},
},
data: function() {
return {
errorMsg: "aaa",
@ -63,7 +71,6 @@ export default {
},
},
created() {
},
}
</script>