Allow title override for user avatars
This commit is contained in:
parent
20c9c60dea
commit
d76d78f855
|
@ -11,8 +11,8 @@ function renderAvatar(user, options) {
|
||||||
|
|
||||||
if (!username || !avatarTemplate) { return ''; }
|
if (!username || !avatarTemplate) { return ''; }
|
||||||
|
|
||||||
let title;
|
let title = options.title;
|
||||||
if (!options.ignoreTitle) {
|
if (!title && !options.ignoreTitle) {
|
||||||
// first try to get a title
|
// first try to get a title
|
||||||
title = Em.get(user, 'title');
|
title = Em.get(user, 'title');
|
||||||
// if there was no title provided
|
// if there was no title provided
|
||||||
|
|
Loading…
Reference in New Issue