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

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

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/reducers.js ('k') | chrome/browser/resources/md_bookmarks/sidebar.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.html
diff --git a/chrome/browser/resources/md_bookmarks/sidebar.html b/chrome/browser/resources/md_bookmarks/sidebar.html
index a295557c591bb9bb05f41dd71a5642c7f8c576ee..d579ed78e2a760650a2ca4d18ab3fb0dbb5bed13 100644
--- a/chrome/browser/resources/md_bookmarks/sidebar.html
+++ b/chrome/browser/resources/md_bookmarks/sidebar.html
@@ -3,10 +3,11 @@
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://bookmarks/folder_node.html">
<link rel="import" href="chrome://bookmarks/store_client.html">
+<link rel="import" href="chrome://bookmarks/shared_style.html">
<dom-module id="bookmarks-sidebar">
<template>
- <style>
+ <style include="shared-style">
:host {
display: block;
padding-top: 8px;
@@ -18,8 +19,9 @@
</style>
<div id="folder-tree">
- <template is="dom-repeat" items="[[rootFolders]]">
- <bookmarks-folder-node item-id="[[item]]">
+ <template is="dom-repeat" items="[[folders]]" filter="isVisible_">
+ <bookmarks-folder-node item-id="[[item.id]]" depth="[[item.depth]]"
+ is-closed="[[!item.open]]">
</bookmarks-folder-node>
</template>
</div>
« no previous file with comments | « chrome/browser/resources/md_bookmarks/reducers.js ('k') | chrome/browser/resources/md_bookmarks/sidebar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698