diff options
Diffstat (limited to 'app/assets/javascripts/profile/edit/components/profile_edit_app.vue')
-rw-r--r-- | app/assets/javascripts/profile/edit/components/profile_edit_app.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/profile/edit/components/profile_edit_app.vue b/app/assets/javascripts/profile/edit/components/profile_edit_app.vue index 6b39f137880..815b8742500 100644 --- a/app/assets/javascripts/profile/edit/components/profile_edit_app.vue +++ b/app/assets/javascripts/profile/edit/components/profile_edit_app.vue @@ -109,8 +109,11 @@ export default { async syncHeaderAvatars() { const dataURL = await readFileAsDataURL(this.avatarBlob); - // TODO: implement sync for super sidebar - ['.header-user-avatar', '.js-sidebar-user-avatar'].forEach((selector) => { + const elements = gon?.use_new_navigation + ? ['[data-testid="user-dropdown"] .gl-avatar'] + : ['.header-user-avatar', '.js-sidebar-user-avatar']; + + elements.forEach((selector) => { const node = document.querySelector(selector); if (!node) return; |