mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
feat: pass user picture object into change_picture_modal
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user