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

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

Issue 410843002: Files.app: Hide fake entries for the save dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/directory_tree.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_manager.js
diff --git a/ui/file_manager/file_manager/foreground/js/file_manager.js b/ui/file_manager/file_manager/foreground/js/file_manager.js
index ef4436327925254fa3baa67d8e94f0973422cdf4..e106b9cf3693df8054654e33bb407862b9246c33 100644
--- a/ui/file_manager/file_manager/foreground/js/file_manager.js
+++ b/ui/file_manager/file_manager/foreground/js/file_manager.js
@@ -104,6 +104,7 @@ FileManager.prototype = {
* FULL_PAGE which is specific to this code.
*
* @enum {string}
+ * @const
*/
var DialogType = {
SELECT_FOLDER: 'folder',
@@ -155,6 +156,8 @@ DialogType.isFolderDialog = function(type) {
type == DialogType.SELECT_UPLOAD_FOLDER;
};
+Object.freeze(DialogType);
+
/**
* Bottom margin of the list and tree for transparent preview panel.
* @const
@@ -1078,11 +1081,14 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
* @private
*/
FileManager.prototype.initNavigationList_ = function() {
+ var fakeEntriesVisible =
+ this.dialogType != DialogType.SELECT_SAVEAS_FILE;
this.directoryTree_ = this.dialogDom_.querySelector('#directory-tree');
DirectoryTree.decorate(this.directoryTree_,
this.directoryModel_,
this.volumeManager_,
- this.metadataCache_);
+ this.metadataCache_,
+ fakeEntriesVisible);
this.navigationList_ = this.dialogDom_.querySelector('#navigation-list');
NavigationList.decorate(this.navigationList_,
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/directory_tree.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698