diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-07-10 17:25:46 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2014-07-14 11:54:05 +0200 |
commit | 1cc8be07018ec02cbc534a86f2cbb1b6a7326f97 (patch) | |
tree | 6e8c0912eb1b7a071b5d444bbea8bd53d03c6aa6 /apps/files_sharing/js | |
parent | bae4579d60e8d3bde493df9f834ae00df08cecce (diff) | |
download | nextcloud-server-1cc8be07018ec02cbc534a86f2cbb1b6a7326f97.tar.gz nextcloud-server-1cc8be07018ec02cbc534a86f2cbb1b6a7326f97.zip |
Added mountType attribute and adapted Delete action text
Added mountType attribute for files/folder to indicated whether they are
regular, external or shared.
The client side then adapts the "Delete" action hint text based on this
information.
Only the mount roots must have the delete icon hint adapted.
To make this detectable on the client side, the mountType can now
be null, "shared", "shared-root", "external" or "external-root".
This also gives room to icon customization on the client side.
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/sharedfilelist.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_sharing/js/sharedfilelist.js b/apps/files_sharing/js/sharedfilelist.js index 861bbaff5de..d5c65a6c681 100644 --- a/apps/files_sharing/js/sharedfilelist.js +++ b/apps/files_sharing/js/sharedfilelist.js @@ -233,6 +233,7 @@ .each(function(data) { // convert the recipients map to a flat // array of sorted names + data.mountType = 'shared'; data.recipients = _.keys(data.recipients); data.recipientsDisplayName = OCA.Sharing.Util.formatRecipients( data.recipients, |