]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not set indeterminate state for file shares
authorJulius Härtl <jus@bitgrid.net>
Wed, 31 Oct 2018 10:23:23 +0000 (11:23 +0100)
committerJulius Härtl <jus@bitgrid.net>
Thu, 1 Nov 2018 11:36:26 +0000 (12:36 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/js/sharedialogshareelistview.js
core/js/shareitemmodel.js

index 2627d5fa662567ab825f64696cfb584693cea20d..7026387284d23b25ccc4919d3b79ac7fa7d75d88 100644 (file)
                                var $edit = _this.$('#canEdit-' + _this.cid + '-' + sharee.shareId);
                                if($edit.length === 1) {
                                        $edit.prop('checked', sharee.editPermissionState === 'checked');
-                                       $edit.prop('indeterminate', sharee.editPermissionState === 'indeterminate');
+                                       if (sharee.isFolder) {
+                                               $edit.prop('indeterminate', sharee.editPermissionState === 'indeterminate');
+                                       }
                                }
                        });
                        this.$('.popovermenu').on('afterHide', function() {
index c28d85efbf0fa72a508cb9f66d310412fb89c371..7d6fdd0a7dee7a3dcb4b6e9410a2187e023b7f62 100644 (file)
                        var hcp = this.hasCreatePermission(shareIndex);
                        var hup = this.hasUpdatePermission(shareIndex);
                        var hdp = this.hasDeletePermission(shareIndex);
+                       if (this.isFile()) {
+                               if (hcp || hup || hdp) {
+                                       return 'checked';
+                               }
+                               return '';
+                       }
                        if (!hcp && !hup && !hdp) {
                                return '';
                        }