summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-07-20 18:34:55 +0200
committerGitHub <noreply@github.com>2016-07-20 18:34:55 +0200
commit032e6b1701dd4a8d674923feb3962ee49fdb7c77 (patch)
tree072ceb34688f7bf5f3aab3a8f08efb7ecca7232b /core
parente9c85e02ac93a89e68801b7fefd0bfca2581aa29 (diff)
parent77d2338bd2099333f09a647f3045614cd3e74418 (diff)
downloadnextcloud-server-032e6b1701dd4a8d674923feb3962ee49fdb7c77.tar.gz
nextcloud-server-032e6b1701dd4a8d674923feb3962ee49fdb7c77.zip
Merge pull request #473 from nextcloud/ux-improvement-share-dialog
only show additional edit permissions for folders
Diffstat (limited to 'core')
-rw-r--r--core/js/sharedialogshareelistview.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js
index 85dee978987..d156d30cecd 100644
--- a/core/js/sharedialogshareelistview.js
+++ b/core/js/sharedialogshareelistview.js
@@ -38,7 +38,9 @@
'<span class="shareOption">' +
'<input id="canEdit-{{cid}}-{{shareWith}}" type="checkbox" name="edit" class="permissions checkbox" {{#if hasEditPermission}}checked="checked"{{/if}} />' +
'<label for="canEdit-{{cid}}-{{shareWith}}">{{canEditLabel}}</label>' +
+ '{{#if isFolder}}' +
'<a href="#" class="showCruds"><img alt="{{crudsLabel}}" src="{{triangleSImage}}"/></a>' +
+ '{{/if}}' +
'</span>' +
'{{/if}}' +
'<div class="cruds hidden">' +
@@ -162,7 +164,8 @@
sharePermission: OC.PERMISSION_SHARE,
createPermission: OC.PERMISSION_CREATE,
updatePermission: OC.PERMISSION_UPDATE,
- deletePermission: OC.PERMISSION_DELETE
+ deletePermission: OC.PERMISSION_DELETE,
+ isFolder: this.model.isFolder()
};
if(!this.model.hasUserShares()) {