mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Add a widget setting for the user's avatar size
This commit is contained in:
parent
7db2083d45
commit
705ab88173
1 changed files with 8 additions and 2 deletions
|
@ -21,11 +21,17 @@ const dropdown = {
|
|||
};
|
||||
|
||||
createWidget('header-notifications', {
|
||||
settings: {
|
||||
avatarSize: 'medium'
|
||||
},
|
||||
|
||||
html(attrs) {
|
||||
const { currentUser } = this;
|
||||
|
||||
const contents = [ avatarImg('medium', { template: currentUser.get('avatar_template'),
|
||||
username: currentUser.get('username') }) ];
|
||||
const contents = [ avatarImg(this.settings.avatarSize, {
|
||||
template: currentUser.get('avatar_template'),
|
||||
username: currentUser.get('username')
|
||||
}) ];
|
||||
|
||||
const unreadNotifications = currentUser.get('unread_notifications');
|
||||
if (!!unreadNotifications) {
|
||||
|
|
Loading…
Reference in a new issue