mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
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:
parent
fcbcf21092
commit
4cfdfc3cb4
1 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue