Skip to content
Next Next commit
Filelist:-Deselecting all files checkboxes within cells of encrypted …
…folder

Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
TSI-kavitasonawane authored and backportbot-nextcloud[bot] committed Nov 22, 2022
commit cfa0dab8f190fe1dc6f560dd2125c6164c93bfe3
3 changes: 2 additions & 1 deletion apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,7 @@
// Select only visible checkboxes to filter out unmatched file in search
this.$fileList.find('td.selection > .selectCheckBox:visible').prop('checked', checked)
.closest('tr').toggleClass('selected', checked);
this.$fileList.find('tr[data-e2eencrypted="true"]').find('td.selection > .selectCheckBox:visible').prop('checked', false).closest('tr').toggleClass('selected', false);

if (checked) {
for (var i = 0; i < this.files.length; i++) {
Expand All @@ -984,7 +985,7 @@
var fileData = this.files[i];
var fileRow = this.$fileList.find('tr[data-id=' + fileData.id + ']');
// do not select already selected ones
if (!fileRow.hasClass('hidden') && _.isUndefined(this._selectedFiles[fileData.id])) {
if (!fileRow.hasClass('hidden') && _.isUndefined(this._selectedFiles[fileData.id]) && (!fileData.isEncrypted)) {
this._selectedFiles[fileData.id] = fileData;
this._selectionSummary.add(fileData);
}
Expand Down