| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 Polymer({ | 5 Polymer({ |
| 6 is: 'bookmarks-sidebar', | 6 is: 'bookmarks-sidebar', |
| 7 | 7 |
| 8 behaviors: [ | 8 behaviors: [ |
| 9 bookmarks.StoreClient, | 9 bookmarks.StoreClient, |
| 10 ], | 10 ], |
| 11 | 11 |
| 12 properties: { | 12 properties: { |
| 13 rootFolders: Array, | 13 folders: Array, |
| 14 }, | 14 }, |
| 15 | 15 |
| 16 attached: function() { | 16 attached: function() { |
| 17 this.observe('rootFolders', function(store) { | 17 this.observe('folders', function(store) { |
| 18 return store.nodes['0'].children; | 18 return store.sidebar.folders; |
| 19 }); | 19 }); |
| 20 this.updateFromStore(); | 20 this.updateFromStore(); |
| 21 }, | 21 }, |
| 22 |
| 23 isVisible_: function(folder) { |
| 24 return folder.visible; |
| 25 }, |
| 22 }); | 26 }); |
| OLD | NEW |