Add logo as default avatar background image

This commit is contained in:
Matt Rider 2019-05-30 16:04:16 -03:00
parent df519c9828
commit 068f6c2b49

View File

@ -35,7 +35,9 @@ export default {
},
computed: {
backgroundImage() {
const { avatar } = this.user || {}
const avatar =
this.user.avatar ||
'https://human-connection.org/wp-content/uploads/2019/03/human-connection-logo.svg'
const userAvatar = avatar.startsWith('/') ? avatar.replace('/', '/api/') : avatar
return {
backgroundImage: `url(${userAvatar})`,