Skip to content
Prev Previous commit
Next Next commit
Prevent selection of encrypted folders
  • Loading branch information
TSI-kavitasonawane authored and backportbot-nextcloud[bot] committed Nov 22, 2022
commit 895d068ab9f87cd62f3f0e722b5940c000664def
5 changes: 4 additions & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down