mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -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
c82181fec7
commit
55722092d3
1 changed files with 8 additions and 2 deletions
|
|
@ -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();
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue