summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-06-23 13:24:58 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2022-06-23 13:24:58 +0200
commit55722092d3602ba456e9b3bf2c6b06a871aa4bb3 (patch)
tree6244118dee7e32058236897abfc2d4f053d1f082
parentc82181fec7ac4a0d3a52b6ca02fe146171c4f159 (diff)
downloadnextcloud-server-55722092d3602ba456e9b3bf2c6b06a871aa4bb3.tar.gz
nextcloud-server-55722092d3602ba456e9b3bf2c6b06a871aa4bb3.zip
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 <danxuliu@gmail.com>
-rw-r--r--apps/files/js/filelist.js10
1 files 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();
+ });
},
/**