mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-13 13:35:23 +01:00
Vue: fix UserCard not always showing the username
This commit is contained in:
parent
1ffa5355be
commit
b663aa28dd
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
|||
export default {
|
||||
props: ["user_id", "name", "followed", "banned", "show_new_post"],
|
||||
watch: {
|
||||
name: function (new_val, old_val) {
|
||||
this.username = new_val;
|
||||
},
|
||||
banned: function (new_val, old_val) {
|
||||
this.user_banned = new_val;
|
||||
},
|
||||
|
@ -78,7 +81,7 @@ export default {
|
|||
})
|
||||
},
|
||||
},
|
||||
created() {
|
||||
mounted() {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue