]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: Apply directory permissions for new api response 41264/head
authorJulius Härtl <jus@bitgrid.net>
Fri, 3 Nov 2023 10:55:27 +0000 (11:55 +0100)
committerJulius Härtl <jus@bitgrid.net>
Fri, 3 Nov 2023 10:55:27 +0000 (11:55 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/js/files.js

index dcc6cbf6407e67cea6c0304c70c04725914ef215..36dbd2a4240560a29a5b2d489a32e91cea0b8bdb 100644 (file)
                        if (response === undefined) {
                                return;
                        }
+
+                       if (response.data !== undefined && response.data.free !== undefined) {
+                               $('#free_space').val(response.data.free);
+                               OCA.Files.App.fileList._updateDirectoryPermissions();
+                       }
+
                        if (response.data !== undefined && response.data.uploadMaxFilesize !== undefined) {
-                               $('#free_space').val(response.data.freeSpace);
                                $('#upload.button').attr('title', response.data.maxHumanFilesize);
                                $('#usedSpacePercent').val(response.data.usedSpacePercent);
                                $('#usedSpacePercent').data('mount-type', response.data.mountType);