Use a correct avatar placeholder image
This commit is contained in:
parent
95b735ff72
commit
9c4092dbd5
BIN
src/assets/avatar-placeholder.png
Normal file
BIN
src/assets/avatar-placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
@ -1,5 +1,5 @@
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
import nsfwImage from '../../assets/nsfw.png'
|
||||
import avatarPlaceholderImage from '../../assets/avatar-placeholder.png'
|
||||
|
||||
const UserAvatar = {
|
||||
props: [
|
||||
@ -15,7 +15,7 @@ const UserAvatar = {
|
||||
},
|
||||
computed: {
|
||||
imgSrc () {
|
||||
return this.showPlaceholder ? nsfwImage : this.src
|
||||
return this.showPlaceholder ? avatarPlaceholderImage : this.src
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
Loading…
Reference in New Issue
Block a user