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

Unified Diff: ui/file_manager/file_manager/background/js/entry_location_impl.js

Issue 2839863002: Add Team Drive subtree to the directory list view. (Closed)
Patch Set: Remove some unncecesary code 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
Index: ui/file_manager/file_manager/background/js/entry_location_impl.js
diff --git a/ui/file_manager/file_manager/background/js/entry_location_impl.js b/ui/file_manager/file_manager/background/js/entry_location_impl.js
index 34713d9ff6265000e6bebb34e51d5b37e80cb2af..ce38f135373f38229d68ecab391923108cf83994 100644
--- a/ui/file_manager/file_manager/background/js/entry_location_impl.js
+++ b/ui/file_manager/file_manager/background/js/entry_location_impl.js
@@ -30,15 +30,20 @@ function EntryLocationImpl(volumeInfo, rootType, isRootEntry, isReadOnly) {
this.rootType === VolumeManagerCommon.RootType.DRIVE_RECENT;
/** @override */
- this.isDriveBased =
- this.rootType === VolumeManagerCommon.RootType.DRIVE ||
+ this.isDriveBased = this.rootType === VolumeManagerCommon.RootType.DRIVE ||
this.rootType === VolumeManagerCommon.RootType.DRIVE_OTHER ||
this.rootType === VolumeManagerCommon.RootType.DRIVE_SHARED_WITH_ME ||
this.rootType === VolumeManagerCommon.RootType.DRIVE_RECENT ||
- this.rootType === VolumeManagerCommon.RootType.DRIVE_OFFLINE;
+ this.rootType === VolumeManagerCommon.RootType.DRIVE_OFFLINE ||
+ this.rootType === VolumeManagerCommon.RootType.TEAM_DRIVES_GRAND_ROOT ||
+ this.rootType === VolumeManagerCommon.RootType.TEAM_DRIVE;
/** @override */
this.isReadOnly = isReadOnly;
+ /** @type{boolean} */
+ this.hasFixedLabel =
+ this.isRootEntry && rootType !== VolumeManagerCommon.RootType.TEAM_DRIVE;
+
Object.freeze(this);
}

Powered by Google App Engine
This is Rietveld 408576698