mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 20:32:35 +02: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 {
|
export default {
|
||||||
props: ["user_id", "name", "followed", "banned", "show_new_post"],
|
props: ["user_id", "name", "followed", "banned", "show_new_post"],
|
||||||
watch: {
|
watch: {
|
||||||
|
name: function (new_val, old_val) {
|
||||||
|
this.username = new_val;
|
||||||
|
},
|
||||||
banned: function (new_val, old_val) {
|
banned: function (new_val, old_val) {
|
||||||
this.user_banned = new_val;
|
this.user_banned = new_val;
|
||||||
},
|
},
|
||||||
|
@ -78,7 +81,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
mounted() {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue