summaryrefslogtreecommitdiffstats
path: root/core/js/share.js
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-09-19 17:24:53 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-11-20 21:00:26 +0100
commit7bc28f14de8c3d77ec611a4ffd8ad48dc6093cea (patch)
tree1b48fa49cf6ad996c9da8ddfb2736fad99b421ac /core/js/share.js
parent37d8d3d858d66ccfc9b9a32606a9448bc15f5960 (diff)
downloadnextcloud-server-7bc28f14de8c3d77ec611a4ffd8ad48dc6093cea.tar.gz
nextcloud-server-7bc28f14de8c3d77ec611a4ffd8ad48dc6093cea.zip
show e2e folder icon on encrypted folders
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core/js/share.js')
-rw-r--r--core/js/share.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/share.js b/core/js/share.js
index 25d59b46fb4..be90c626959 100644
--- a/core/js/share.js
+++ b/core/js/share.js
@@ -276,10 +276,14 @@ OC.Share = _.extend(OC.Share || {}, {
$tr.find('.filename .thumbnail').css('background-image', 'url(' + shareFolderIcon + ')');
$tr.attr('data-icon', shareFolderIcon);
} else if (type === 'dir') {
+ var isEncrypted = $tr.attr('data-e2eencrypted');
var mountType = $tr.attr('data-mounttype');
// FIXME: duplicate of FileList._createRow logic for external folder,
// need to refactor the icon logic into a single code path eventually
- if (mountType && mountType.indexOf('external') === 0) {
+ if (isEncrypted === 'true') {
+ shareFolderIcon = OC.MimeType.getIconUrl('dir-encrypted');
+ $tr.attr('data-icon', shareFolderIcon);
+ } else if (mountType && mountType.indexOf('external') === 0) {
shareFolderIcon = OC.MimeType.getIconUrl('dir-external');
$tr.attr('data-icon', shareFolderIcon);
} else {