]> source.dussan.org Git - nextcloud-server.git/commitdiff
Filelist:-Deselecting all files checkboxes within cells of encrypted folder
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
Tue, 15 Nov 2022 05:57:46 +0000 (11:27 +0530)
committerVincent Petry <vincent@nextcloud.com>
Wed, 23 Nov 2022 09:29:03 +0000 (10:29 +0100)
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
apps/files/js/filelist.js

index 3530cb66301613d8a8457356735e28f123d3e396..b74e5f5bd5b16249576d61aadf4f43cbe3d873e5 100644 (file)
                        // 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++) {
                                        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);
                                        }