Skip to content

Commit

Permalink
feat: pass user picture object into change_picture_modal
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Feb 19, 2021
1 parent 28f6931 commit c96fd3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions public/src/modules/accounts/picture.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ define('accounts/picture', [
defaultAvatar: ajaxify.data.defaultAvatar,
allowProfileImageUploads: ajaxify.data.allowProfileImageUploads,
iconBackgrounds: config.iconBackgrounds,
user: {
uid: ajaxify.data.uid,
username: ajaxify.data.username,
picture: ajaxify.data.picture,
'icon:text': ajaxify.data['icon:text'],
'icon:bgColor': ajaxify.data['icon:bgColor'],
},
}, function (html) {
var modal = bootbox.dialog({
className: 'picture-switcher',
Expand Down

0 comments on commit c96fd3b

Please sign in to comment.