Merge pull request #473 from nextcloud/ux-improvement-share-dialog

only show additional edit permissions for folders
This commit is contained in:
Morris Jobke 2016-07-20 18:34:55 +02:00 committed by GitHub
commit 032e6b1701
1 changed files with 4 additions and 1 deletions

View File

@ -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()) {