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

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

Issue 2735953002: MD Bookmarks: Integrate new data store with UI elements (Closed)
Patch Set: calamity@ review 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
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 9cfeb1b3803120757c044dce413e149b2b38dd4f..d704a9a181475de6ebddf835657e8e8836b059cd 100644
--- a/chrome/browser/resources/md_bookmarks/sidebar.js
+++ b/chrome/browser/resources/md_bookmarks/sidebar.js
@@ -5,7 +5,19 @@
Polymer({
is: 'bookmarks-sidebar',
+ behaviors: [
+ bookmarks.StoreClient,
+ ],
+
properties: {
+ /** @type {Array<string>} */
rootFolders: Array,
},
+
+ attached: function() {
+ this.watch('rootFolders', function(store) {
+ return store.nodes['0'].children;
+ });
+ this.updateFromStore();
+ },
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/sidebar.html ('k') | chrome/browser/resources/md_bookmarks/store_client.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698