Skip to content
Snippets Groups Projects

Allow remove of banner, avatar images issue #353

Closed Wyatt Benno requested to merge wyatt777/pleroma-fe:issue-353 into develop
Compare and
10 files
+ 172
17
Compare changes
  • Side-by-side
  • Inline
Files
10
@@ -8,26 +8,20 @@ const UserAvatar = {
],
data () {
return {
showPlaceholder: false
showPlaceholder: false,
defaultAvatar: `${this.$store.state.instance.server + this.$store.state.instance.defaultAvatar}`
}
},
components: {
StillImage
},
computed: {
imgSrc () {
return this.showPlaceholder ? '/images/avi.png' : this.user.profile_image_url_original
}
},
methods: {
imgSrc (src) {
return (!src || this.showPlaceholder) ? this.defaultAvatar : src
},
imageLoadError () {
this.showPlaceholder = true
}
},
watch: {
src () {
this.showPlaceholder = false
}
}
}
Loading