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

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

Issue 2610123004: [MD Bookmarks] Add a message to empty bookmark lists. (Closed)
Patch Set: Created 3 years, 11 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/list.js
diff --git a/chrome/browser/resources/md_bookmarks/list.js b/chrome/browser/resources/md_bookmarks/list.js
index 426cbb33be433e5dafe803e9ac440ab97314edc7..452409bfabb249a06ac3f355869fa94e0a2b140c 100644
--- a/chrome/browser/resources/md_bookmarks/list.js
+++ b/chrome/browser/resources/md_bookmarks/list.js
@@ -45,5 +45,10 @@ Polymer({
var menu = /** @type {!CrActionMenuElement} */ (
this.$.dropdown);
menu.close();
+ },
+
+ /** @private */
+ isListEmpty_: function() {
+ return this.selectedNode.children.length == 0;
}
});

Powered by Google App Engine
This is Rietveld 408576698