Skip to content

Commit 4cfdfc3

Browse files
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>
1 parent fcbcf21 commit 4cfdfc3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

apps/files/js/filelist.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,7 +2630,10 @@
26302630
self.showFileBusyState($tr, false);
26312631
});
26322632
};
2633-
return this.reportOperationProgress(fileNames, moveFileFunction, callback);
2633+
return this.reportOperationProgress(fileNames, moveFileFunction, callback).then(function() {
2634+
self.updateStorageStatistics();
2635+
self.updateStorageQuotas();
2636+
});
26342637
},
26352638

26362639
_reflect: function (promise){
@@ -2810,7 +2813,10 @@
28102813
}
28112814
});
28122815
};
2813-
return this.reportOperationProgress(fileNames, copyFileFunction, callback);
2816+
return this.reportOperationProgress(fileNames, copyFileFunction, callback).then(function() {
2817+
self.updateStorageStatistics();
2818+
self.updateStorageQuotas();
2819+
});
28142820
},
28152821

28162822
/**

0 commit comments

Comments
 (0)