diff options
author | Maxence Lange <maxence@nextcloud.com> | 2017-06-06 10:21:42 -0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-05-21 01:24:45 +0200 |
commit | 0009adae80cf9b3f8bcc40bd3f75d2a3f2cee6ad (patch) | |
tree | 22a62264854300ff73a62bcf94262d5fcad86adf /core/js/shareitemmodel.js | |
parent | ca089b9412af79cc696342968a657991755a2e2e (diff) | |
download | nextcloud-server-0009adae80cf9b3f8bcc40bd3f75d2a3f2cee6ad.tar.gz nextcloud-server-0009adae80cf9b3f8bcc40bd3f75d2a3f2cee6ad.zip |
SharedWithDisplayName + SharedWithAvatar
Signed-off-by: Maxence Lange <maxence@nextcloud.com>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index e7824aca33a..93feba9c889 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -43,6 +43,7 @@ * @property {string} token * @property {string} share_with * @property {string} share_with_displayname + * @property {string} share_with_avatar * @property {string} mail_send * @property {Date} expiration optional? * @property {number} stime optional? @@ -405,6 +406,20 @@ return share.share_with_displayname; }, + + /** + * @param shareIndex + * @returns {string} + */ + getShareWithAvatar: function(shareIndex) { + /** @type OC.Share.Types.ShareInfo **/ + var share = this.get('shares')[shareIndex]; + if(!_.isObject(share)) { + throw "Unknown Share"; + } + return share.share_with_avatar; + }, + /** * @param shareIndex * @returns {string} |