From ce39c7f734faae3445a0d79f4f21bbc1ec3c148d Mon Sep 17 00:00:00 2001 From: jelveh Date: Tue, 28 Apr 2026 11:57:27 -0700 Subject: [PATCH] Sync profile picture updates across UI --- src/gui/src/UI/Dashboard/TabAccount.js | 4 ++-- src/gui/src/UI/Settings/UITabAccount.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/src/UI/Dashboard/TabAccount.js b/src/gui/src/UI/Dashboard/TabAccount.js index b5a135597..9cd37b5cd 100644 --- a/src/gui/src/UI/Dashboard/TabAccount.js +++ b/src/gui/src/UI/Dashboard/TabAccount.js @@ -236,8 +236,8 @@ const TabAccount = { canvas.height = 150; ctx.drawImage(img, 0, 0, 150, 150); const base64data = canvas.toDataURL('image/png'); - // update profile picture - $el_window.find('.dashboard-profile-avatar').css('background-image', `url(${ html_encode(base64data) })`); + // update profile picture everywhere (matches helpers.js session refresh) + $('.profile-pic').css('background-image', `url(${ html_encode(base64data) })`); $('.profile-image').css('background-image', `url(${ html_encode(base64data) })`); $('.profile-image').addClass('profile-image-has-picture'); // update profile picture diff --git a/src/gui/src/UI/Settings/UITabAccount.js b/src/gui/src/UI/Settings/UITabAccount.js index 949cb98e4..5fad518f5 100644 --- a/src/gui/src/UI/Settings/UITabAccount.js +++ b/src/gui/src/UI/Settings/UITabAccount.js @@ -157,8 +157,9 @@ export default { canvas.height = 150; ctx.drawImage(img, 0, 0, 150, 150); const base64data = canvas.toDataURL('image/png'); - // update profile picture + // update profile picture everywhere (matches helpers.js session refresh) $el_window.find('.profile-picture').css('background-image', `url(${ html_encode(base64data) })`); + $('.profile-pic').css('background-image', `url(${ html_encode(base64data) })`); $('.profile-image').css('background-image', `url(${ html_encode(base64data) })`); $('.profile-image').addClass('profile-image-has-picture'); // update profile picture