From 55722092d3602ba456e9b3bf2c6b06a871aa4bb3 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Thu, 23 Jun 2022 13:24:58 +0200 Subject: Fix quota text not updated after copying or moving a file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/files/js/filelist.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 714e66e53ed..ac43b5456cb 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2633,7 +2633,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){ @@ -2813,7 +2816,10 @@ } }); }; - return this.reportOperationProgress(fileNames, copyFileFunction, callback); + return this.reportOperationProgress(fileNames, copyFileFunction, callback).then(function() { + self.updateStorageStatistics(); + self.updateStorageQuotas(); + }); }, /** -- cgit v1.2.3