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

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

Issue 293643002: Use special icon for shared folders in file list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove curly bracket from one-line if statements. Created 6 years, 7 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 | « ui/file_manager/file_manager/foreground/js/file_grid.js ('k') | 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_table.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_table.js b/ui/file_manager/file_manager/foreground/js/file_table.js
index 5a217a9e6d5aa5c1db11381033411e2adcce2207..d568c03c0262074529f65bc909b21e0889fb3eaa 100644
--- a/ui/file_manager/file_manager/foreground/js/file_table.js
+++ b/ui/file_manager/file_manager/foreground/js/file_table.js
@@ -821,10 +821,13 @@ filelist.updateListItemDriveProps = function(li, driveProps) {
// crbug.com/246611.
}
- if (driveProps.customIconUrl) {
- var iconDiv = li.querySelector('.detail-icon');
- if (!iconDiv)
- return;
+ var iconDiv = li.querySelector('.detail-icon');
+ if (!iconDiv)
+ return;
+
+ if (driveProps.customIconUrl)
iconDiv.style.backgroundImage = 'url(' + driveProps.customIconUrl + ')';
- }
+
+ if (li.classList.contains('directory'))
+ iconDiv.classList.toggle('shared', driveProps.shared);
};
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/file_grid.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698