summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2022-06-23 13:24:58 +0200
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2022-07-06 13:28:56 +0000
commit4cfdfc3cb4629434672d8191589fb4ec93587fd9 (patch)
treead83eda468c61154f8d2812e99b0659fae3c53ab
parentfcbcf210925c519fa4be2e3a5ab0c3b489552059 (diff)
downloadnextcloud-server-4cfdfc3cb4629434672d8191589fb4ec93587fd9.tar.gz
nextcloud-server-4cfdfc3cb4629434672d8191589fb4ec93587fd9.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 4b743388a7f..e7fada6b20a 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();
+ });
},
/**