diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-10-17 21:57:22 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-10-30 10:19:33 +0100 |
commit | a1c6e44700d255654838836f4bf5dd00272605bd (patch) | |
tree | f84905eb891bc1eaee397c0d3aa7d71a4bb57047 /core/js | |
parent | e5cae301ebeb472d8c635b479fb5971530122f81 (diff) | |
download | nextcloud-server-a1c6e44700d255654838836f4bf5dd00272605bd.tar.gz nextcloud-server-a1c6e44700d255654838836f4bf5dd00272605bd.zip |
Add collaborators uuid to properly render the avatar and for later grouping
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/sharedialogview.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/sharedialogview.js b/core/js/sharedialogview.js index 7b8759527b3..baf70fa63ad 100644 --- a/core/js/sharedialogview.js +++ b/core/js/sharedialogview.js @@ -468,7 +468,10 @@ if (item.value.shareType === OC.Share.SHARE_TYPE_USER || item.value.shareType === OC.Share.SHARE_TYPE_CIRCLE) { avatar.avatar(item.value.shareWith, 32, undefined, undefined, undefined, item.label); } else { - avatar.imageplaceholder(text, undefined, 32); + if (typeof item.uuid === 'undefined') { + item.uuid = text; + } + avatar.imageplaceholder(item.uuid, text, 32); } $("<div class='autocomplete-item-text'></div>") |