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

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

Issue 2639893006: [MD Bookmarks] Add lines between items and no search results message. (Closed)
Patch Set: Empty list message reevaluates on searchTerm changing. 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/store.js
diff --git a/chrome/browser/resources/md_bookmarks/store.js b/chrome/browser/resources/md_bookmarks/store.js
index baddea20b2e1979feb20095a57cae3ba320e3edd..5a4b53b44b38174f3cfe0657f1a40fdb97003ce0 100644
--- a/chrome/browser/resources/md_bookmarks/store.js
+++ b/chrome/browser/resources/md_bookmarks/store.js
@@ -21,6 +21,7 @@ var BookmarksStore = Polymer({
searchTerm: {
type: String,
+ value: '',
observer: 'updateSearchDisplay_',
notify: true,
},
@@ -110,6 +111,9 @@ var BookmarksStore = Polymer({
/** @private */
updateSearchDisplay_: function() {
+ if (!this.rootNode)
+ return;
+
if (this.searchTerm == '') {
this.fire('selected-folder-changed', this.rootNode.children[0].id);
} else {

Powered by Google App Engine
This is Rietveld 408576698