]> source.dussan.org Git - nextcloud-server.git/commitdiff
Prevent selection of encrypted folders 35349/head
authorkavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
Mon, 21 Nov 2022 06:25:25 +0000 (11:55 +0530)
committerVincent Petry <vincent@nextcloud.com>
Wed, 23 Nov 2022 09:29:27 +0000 (10:29 +0100)
Signed-off-by: kavita.sonawane@t-systems.com <kavita.sonawane@t-systems.com>
apps/files/js/filelist.js

index 215a4509be3eaac33ad4b490d8c4d3329cbac99a..2261c15bc50ca6edb1467ef37dec4f06358a5b4b 100644 (file)
                                        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');