Merge pull request #35521 from nextmcloud/nmcpr/1416-prevents-selection-of-encrypted-folders

[BUGFIX] Prevents the selection of encrypted files at the bottom of the list(before scrolling)
This commit is contained in:
Simon L 2022-12-06 10:30:10 +01:00 committed by GitHub
commit decf2b4524
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1421,15 +1421,15 @@
hidden = false;
}
tr = this._renderRow(fileData, {updateSummary: false, silent: true, hidden: hidden});
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');
tr.find('.selectCheckBox').prop('checked', true);
}
if (tr.attr('data-e2eencrypted') === 'true') {
tr.toggleClass('selected', false);
tr.find('td.selection > .selectCheckBox:visible').prop('checked', false);
}
if (animate) {
tr.addClass('appear transparent');
}