Merge branch 'mastoapi/user-stuff' into shigusegubu
* mastoapi/user-stuff: fix user-card avatar falling into permament failed state fix flake id users not fetching correctly fix console error
This commit is contained in:
commit
23c22c7cbd
3 changed files with 21 additions and 7 deletions
|
|
@ -23,6 +23,11 @@ const UserAvatar = {
|
|||
imageLoadError () {
|
||||
this.showPlaceholder = true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
src () {
|
||||
this.showPlaceholder = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,8 @@ const UserProfile = {
|
|||
},
|
||||
userInStore () {
|
||||
const routeParams = this.$route.params
|
||||
return this.$store.getters.findUser(routeParams.name || routeParams.id)
|
||||
// This needs fetchedUserId so that computed will be refreshed when user is fetched
|
||||
return this.$store.getters.findUser(this.fetchedUserId || routeParams.name || routeParams.id)
|
||||
},
|
||||
user () {
|
||||
if (this.timeline.statuses[0]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue