Index: ui/file_manager/file_manager/foreground/js/ui/file_grid.js |
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_grid.js b/ui/file_manager/file_manager/foreground/js/ui/file_grid.js |
index fc20538dd28962c30c4d542a76a96397b9196210..8c0983325b62fc585cac77be424be0af3f0611b3 100644 |
--- a/ui/file_manager/file_manager/foreground/js/ui/file_grid.js |
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_grid.js |
@@ -294,11 +294,23 @@ FileGrid.applyHistoryBadges_ = function(entry, box, history) { |
// a possibly-fragile sibling selector we just |
// plop the imported class on the parent of both. |
box.parentElement.classList.add('imported'); |
+ } else { |
+ history.wasCopied(entry, importer.Destination.GOOGLE_DRIVE) |
+ .then( |
+ function(copied) { |
+ if (copied) { |
+ // TODO(smckay): update badges when history changes |
+ // "box" is currently the sibling of the elemement |
+ // we want to style. So rather than employing |
+ // a possibly-fragile sibling selector we just |
+ // plop the imported class on the parent of both. |
+ box.parentElement.classList.add('copied'); |
+ } |
+ }); |
} |
}); |
}; |
- |
/** |
* Item for the Grid View. |
* @constructor |