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

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

Issue 2780223004: MD Bookmarks: Implement dialog to add new folders/bookmarks (Closed)
Patch Set: Rebase Created 3 years, 8 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/toolbar.html
diff --git a/chrome/browser/resources/md_bookmarks/toolbar.html b/chrome/browser/resources/md_bookmarks/toolbar.html
index 615700871633179a061c117468233bf4afd02a65..2e5e618a8084332279f3f38b23583c162b873b1b 100644
--- a/chrome/browser/resources/md_bookmarks/toolbar.html
+++ b/chrome/browser/resources/md_bookmarks/toolbar.html
@@ -1,7 +1,9 @@
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
+<link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html">
<link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
+<link rel="import" href="chrome://bookmarks/edit_dialog.html">
<link rel="import" href="chrome://bookmarks/shared_style.html">
<link rel="stylesheet" href="chrome://resources/css/md_colors.css">
@@ -23,17 +25,16 @@
}
</style>
<dialog is="cr-action-menu" id="dropdown">
- <button class="dropdown-item" on-tap="onBulkEditTap_">
- $i18n{menuBulkEdit}
- </button>
<button class="dropdown-item" on-tap="onSortTap_">
$i18n{menuSort}
</button>
<hr>
- <button class="dropdown-item" on-tap="onAddBookmarkTap_">
+ <button class="dropdown-item" on-tap="onAddBookmarkTap_"
+ disabled="[[hasSearchTerm_(searchTerm_)]]">
$i18n{menuAddBookmark}
</button>
- <button class="dropdown-item" on-tap="onAddFolderTap_">
+ <button class="dropdown-item" on-tap="onAddFolderTap_"
+ disabled="[[hasSearchTerm_(searchTerm_)]]">
$i18n{menuAddFolder}
</button>
<hr>
@@ -55,6 +56,9 @@
<div></div>
</button>
</cr-toolbar>
+ <template is="cr-lazy-render" id="addDialog">
+ <bookmarks-edit-dialog></bookmarks-edit-dialog>
+ </template>
</template>
<script src="chrome://bookmarks/toolbar.js"></script>
</dom-module>
« no previous file with comments | « chrome/browser/resources/md_bookmarks/edit_dialog.js ('k') | chrome/browser/resources/md_bookmarks/toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698