Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: ui/file_manager/file_manager/foreground/js/file_transfer_controller.js

Issue 2846763002: Update progress center immediately when files are pasted. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
index 544b6600b80d060d465a5c914d0e84fe77bbb354..29556305efd73229ab290afda541a68b172bc6c9 100644
--- a/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/file_transfer_controller.js
@@ -548,6 +548,15 @@ FileTransferController.prototype.paste =
var shareEntries;
var taskId = this.fileOperationManager_.generateTaskId();
+ var item = new ProgressCenterItem();
+ item.id = taskId;
+ if (toMove) {
+ item.message = strf('MOVE_ITEMS_REMAINING', sourceURLs.length);
+ } else {
+ item.message = strf('COPY_ITEMS_REMAINING', sourceURLs.length);
+ }
+ this.progressCenter_.updateItem(item);
+
FileTransferController.URLsToEntriesWithAccess(sourceURLs)
.then(
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698