From f63fa8cac616484bf0bc6d85b429740adfe0c801 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Fri, 3 Nov 2023 11:55:27 +0100 Subject: [PATCH] fix: Apply directory permissions for new api response MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/js/files.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index dcc6cbf6407..36dbd2a4240 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -70,8 +70,13 @@ 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); -- 2.39.5