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

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

Issue 2639893006: [MD Bookmarks] Add lines between items and no search results message. (Closed)
Patch Set: Fix css on separator line 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 3c1ad92146c8a4b4abc6d344bc40831231ec8cd4..018b9c6d6114c0a618318ee5477fce73d9a6634b 100644
--- a/chrome/browser/resources/md_bookmarks/list.js
+++ b/chrome/browser/resources/md_bookmarks/list.js
@@ -11,6 +11,8 @@ Polymer({
/** @type {Array<BookmarkTreeNode>} */
displayedList: Array,
+
+ searchTerm: String,
},
listeners: {
@@ -81,7 +83,13 @@ Polymer({
},
/** @private */
- isListEmpty_: function() {
+ emptyListMessage_: function() {
+ var emptyListMessage = this.searchTerm ? 'noSearchResults' : 'emptyList';
+ return loadTimeData.getString(emptyListMessage);
+ },
+
+ /** @private */
+ isEmptyList_: function() {
return this.displayedList.length == 0;
- }
+ },
});
« no previous file with comments | « chrome/browser/resources/md_bookmarks/list.html ('k') | chrome/browser/resources/md_bookmarks/shared_vars.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698