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>
This commit is contained in:
Daniel Calviño Sánchez 2022-06-23 13:24:58 +02:00 committed by backportbot-nextcloud[bot]
parent fcbcf21092
commit 4cfdfc3cb4

View file

@ -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();
});
},
/**