diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-11-30 20:56:10 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2016-12-22 18:35:32 +0100 |
commit | 14256d631cf32d8774c7fcffe322d65f964fcd5d (patch) | |
tree | 871fc9174c2060060772ede82ac884d7980b98ff /core/js/shareitemmodel.js | |
parent | 453f3beffaf629efa5c715f7ca88b5c0a1034af8 (diff) | |
download | nextcloud-server-14256d631cf32d8774c7fcffe322d65f964fcd5d.tar.gz nextcloud-server-14256d631cf32d8774c7fcffe322d65f964fcd5d.zip |
Use group display name in sharing API + UI
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r-- | core/js/shareitemmodel.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js index b01f0f790ac..9b10f067afc 100644 --- a/core/js/shareitemmodel.js +++ b/core/js/shareitemmodel.js @@ -345,6 +345,14 @@ }, /** + * @returns {string} + */ + getReshareWithDisplayName: function() { + var reshare = this.get('reshare'); + return reshare.share_with_displayname || reshare.share_with; + }, + + /** * @returns {number} */ getReshareType: function() { |