mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
Color avatars of non-existing users gray and display X instead
This commit is contained in:
parent
61ec37431a
commit
5d71eb5670
1 changed files with 3 additions and 1 deletions
|
|
@ -85,7 +85,9 @@
|
|||
if (result.data && result.data.displayname) {
|
||||
$div.imageplaceholder(user, result.data.displayname);
|
||||
} else {
|
||||
$div.imageplaceholder(user);
|
||||
// User does not exist
|
||||
$div.imageplaceholder(user, 'X');
|
||||
$div.css('background-color', '#b9b9b9');
|
||||
}
|
||||
} else {
|
||||
$div.hide();
|
||||
|
|
|
|||
Loading…
Reference in a new issue