mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
Merge pull request #23378 from owncloud/stable9-backport-23370
[stable9] Update avatar on username change if avatar is set
This commit is contained in:
commit
571de654cd
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue