0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

fix missing user avatars in team list (#677)

closes https://github.com/TryGhost/Ghost/issues/8389
- changed `user.image` to `user.profileImage`
This commit is contained in:
Jimmy Cai 2017-05-09 18:23:24 +02:00 committed by Kevin Ansfield
parent fb2fa06b48
commit 5e5003126c

View file

@ -19,8 +19,8 @@ export default Component.extend({
return `${this.get('ghostPaths.assetRoot')}/img/user-image.png`;
}),
userImageBackground: computed('user.image', 'userDefault', function () {
let url = this.get('user.image') || this.get('userDefault');
userImageBackground: computed('user.profileImage', 'userDefault', function () {
let url = this.get('user.profileImage') || this.get('userDefault');
let safeUrl = Handlebars.Utils.escapeExpression(url);
return htmlSafe(`background-image: url(${safeUrl})`);