Skip to content

Commit ce39c7f

Browse files
committed
Sync profile picture updates across UI
1 parent 5e667e2 commit ce39c7f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/gui/src/UI/Dashboard/TabAccount.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ const TabAccount = {
236236
canvas.height = 150;
237237
ctx.drawImage(img, 0, 0, 150, 150);
238238
const base64data = canvas.toDataURL('image/png');
239-
// update profile picture
240-
$el_window.find('.dashboard-profile-avatar').css('background-image', `url(${ html_encode(base64data) })`);
239+
// update profile picture everywhere (matches helpers.js session refresh)
240+
$('.profile-pic').css('background-image', `url(${ html_encode(base64data) })`);
241241
$('.profile-image').css('background-image', `url(${ html_encode(base64data) })`);
242242
$('.profile-image').addClass('profile-image-has-picture');
243243
// update profile picture

src/gui/src/UI/Settings/UITabAccount.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,9 @@ export default {
157157
canvas.height = 150;
158158
ctx.drawImage(img, 0, 0, 150, 150);
159159
const base64data = canvas.toDataURL('image/png');
160-
// update profile picture
160+
// update profile picture everywhere (matches helpers.js session refresh)
161161
$el_window.find('.profile-picture').css('background-image', `url(${ html_encode(base64data) })`);
162+
$('.profile-pic').css('background-image', `url(${ html_encode(base64data) })`);
162163
$('.profile-image').css('background-image', `url(${ html_encode(base64data) })`);
163164
$('.profile-image').addClass('profile-image-has-picture');
164165
// update profile picture

0 commit comments

Comments
 (0)