summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-11-30 20:56:10 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-12-22 18:35:32 +0100
commit14256d631cf32d8774c7fcffe322d65f964fcd5d (patch)
tree871fc9174c2060060772ede82ac884d7980b98ff /core/js/shareitemmodel.js
parent453f3beffaf629efa5c715f7ca88b5c0a1034af8 (diff)
downloadnextcloud-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.js8
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() {