From: Daniel Calviño Sánchez Date: Thu, 23 Jun 2022 11:24:58 +0000 (+0200) Subject: Fix quota text not updated after copying or moving a file X-Git-Tag: v24.0.3rc1~11^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14f3029fe5203fefe1e295da675c7618daa4cf1c;p=nextcloud-server.git Fix quota text not updated after copying or moving a file Note that the quota may change too when files are moved if the file is moved, for example, to or from a folder shared by other user. Besides the quota the storage statistics are also updated, similar to what is done when a file is deleted. Signed-off-by: Daniel Calviño Sánchez --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 69322273a11..3530cb66301 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2630,7 +2630,10 @@ self.showFileBusyState($tr, false); }); }; - return this.reportOperationProgress(fileNames, moveFileFunction, callback); + return this.reportOperationProgress(fileNames, moveFileFunction, callback).then(function() { + self.updateStorageStatistics(); + self.updateStorageQuotas(); + }); }, _reflect: function (promise){ @@ -2810,7 +2813,10 @@ } }); }; - return this.reportOperationProgress(fileNames, copyFileFunction, callback); + return this.reportOperationProgress(fileNames, copyFileFunction, callback).then(function() { + self.updateStorageStatistics(); + self.updateStorageQuotas(); + }); }, /**