Skip to content

Commit

Permalink
hide ... menu for encrypted folders
Browse files Browse the repository at this point in the history
Signed-off-by: Bjoern Schiessle <[email protected]>
  • Loading branch information
schiessle committed Sep 29, 2017
1 parent 095240c commit 81b9363
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/files/js/fileactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,9 @@
_renderMenuTrigger: function($tr, context) {
// remove previous
$tr.find('.action-menu').remove();
var isE2EEncrypted = $tr.data('e2eencrypted');

if (isE2EEncrypted) return;

var $el = this._renderInlineAction({
name: 'menu',
Expand Down
3 changes: 2 additions & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,8 @@
"data-mtime": mtime,
"data-etag": fileData.etag,
"data-permissions": fileData.permissions || this.getDirectoryPermissions(),
"data-has-preview": fileData.hasPreview !== false
"data-has-preview": fileData.hasPreview !== false,
"data-e2eencrypted": (type === 'dir' && fileData.isEncrypted)
});

if (dataIcon) {
Expand Down

0 comments on commit 81b9363

Please sign in to comment.