]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix quota text not updated after copying or moving a file 33125/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Thu, 23 Jun 2022 11:24:58 +0000 (13:24 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 5 Jul 2022 20:25:44 +0000 (20:25 +0000)
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>
apps/files/js/filelist.js

index 69322273a118e65a6ff34cb93775a7905c27fc0c..3530cb66301613d8a8457356735e28f123d3e396 100644 (file)
                                                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){
                                                }
                                        });
                        };
-                       return this.reportOperationProgress(fileNames, copyFileFunction, callback);
+                       return this.reportOperationProgress(fileNames, copyFileFunction, callback).then(function() {
+                               self.updateStorageStatistics();
+                               self.updateStorageQuotas();
+                       });
                },
 
                /**