diff options
author | kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com> | 2022-11-21 11:55:25 +0530 |
---|---|---|
committer | kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com> | 2022-11-22 15:56:10 +0530 |
commit | 95e61ef685f7733bcdd796b6bce6b72cd9a02743 (patch) | |
tree | 3b7141143e0ef3045a3e0b9b1c651e99f023d876 | |
parent | acdd34ecaf1f99627005af08bae3cbbb65394be6 (diff) | |
download | nextcloud-server-95e61ef685f7733bcdd796b6bce6b72cd9a02743.tar.gz nextcloud-server-95e61ef685f7733bcdd796b6bce6b72cd9a02743.zip |
Prevent selection of encrypted folders
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
-rw-r--r-- | apps/files/js/filelist.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 201edde48bd..96273b325cb 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1421,7 +1421,10 @@ hidden = false; } tr = this._renderRow(fileData, {updateSummary: false, silent: true, hidden: hidden}); - this.$fileList.find('tr[data-e2eencrypted="true"]').find('td.selection > .selectCheckBox:visible').prop('checked', false).closest('tr').toggleClass('selected', false); + if (tr.attr('data-e2eencrypted') === 'true') { + tr.toggleClass('selected', false); + tr.find('td.selection > .selectCheckBox:visible').prop('checked', false); + } this.$fileList.append(tr); if (isAllSelected || this._selectedFiles[fileData.id]) { tr.addClass('selected'); |