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); |
} |