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

Unified Diff: chrome/browser/resources/md_bookmarks/sidebar.js

Issue 2722083002: [MD Bookmarks] Flatten sidebar. (Closed)
Patch Set: Created 3 years, 9 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 | « chrome/browser/resources/md_bookmarks/sidebar.html ('k') | chrome/browser/resources/md_bookmarks/types.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_bookmarks/sidebar.js
diff --git a/chrome/browser/resources/md_bookmarks/sidebar.js b/chrome/browser/resources/md_bookmarks/sidebar.js
index c12acde5da52c58529a660678d369105a3e9c140..91e30f5d55b6a22eabcc179f425a2c624ff31b9c 100644
--- a/chrome/browser/resources/md_bookmarks/sidebar.js
+++ b/chrome/browser/resources/md_bookmarks/sidebar.js
@@ -10,13 +10,17 @@ Polymer({
],
properties: {
- rootFolders: Array,
+ folders: Array,
},
attached: function() {
- this.observe('rootFolders', function(store) {
- return store.nodes['0'].children;
+ this.observe('folders', function(store) {
+ return store.sidebar.folders;
});
this.updateFromStore();
},
+
+ isVisible_: function(folder) {
+ return folder.visible;
+ },
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/sidebar.html ('k') | chrome/browser/resources/md_bookmarks/types.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698