diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-06-02 18:52:31 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-06-02 18:52:31 +0200 |
commit | 640fbc016dd81f6ffffb4eb404717a9dd2c2465a (patch) | |
tree | 53da824385b9dee87ad83ee78449d4325326e32b /apps/files_sharing/js | |
parent | 0944565f6033766abfe0ab8987d7116062748c21 (diff) | |
download | nextcloud-server-640fbc016dd81f6ffffb4eb404717a9dd2c2465a.tar.gz nextcloud-server-640fbc016dd81f6ffffb4eb404717a9dd2c2465a.zip |
Now using shareOwner for the share owner
Makes it consistent with the regular file list fileData
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 8a6c3169f9e..ecac5b33667 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -46,7 +46,7 @@ $tr.find('td.filename input:checkbox').remove(); $tr.attr('data-share-id', _.pluck(fileData.shares, 'id').join(',')); if (this._sharedWithUser) { - $tr.attr('data-share-owner', fileData.shares[0].ownerDisplayName); + $tr.attr('data-share-owner', fileData.shareOwner); } return $tr; }, @@ -159,7 +159,7 @@ stime: share.stime * 1000, }; if (self._sharedWithUser) { - file.share.ownerDisplayName = share.displayname_owner; + file.shareOwner = share.displayname_owner; file.name = OC.basename(share.file_target); file.path = OC.dirname(share.file_target); file.permissions = share.permissions; |