Skip to content
Snippets Groups Projects
Commit d79c8c6d authored by Morris Jobke's avatar Morris Jobke
Browse files

Update avatar on username change if avatar is set

* fixes #20455
parent 8fb3e446
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,10 @@ function changeDisplayName () {
$('#oldDisplayName').val($('#displayName').val());
// update displayName on the top right expand button
$('#expandDisplayName').text($('#displayName').val());
updateAvatar();
// update avatar if avatar is available
if(!$('#removeavatar').hasClass('hidden')) {
updateAvatar();
}
}
else {
$('#newdisplayname').val(data.data.displayName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment