Chromium Code Reviews| 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..6487c38574b44d262ea95cb75e9f01933027778c 100644 |
| --- a/chrome/browser/resources/md_bookmarks/list.js |
| +++ b/chrome/browser/resources/md_bookmarks/list.js |
| @@ -11,6 +11,11 @@ Polymer({ |
| /** @type {Array<BookmarkTreeNode>} */ |
| displayedList: Array, |
| + |
| + searchTerm: { |
|
tsergeant
2017/01/20 02:48:27
Does it work if you use the short form:
searchTer
|
| + type: String, |
| + value: '', |
| + }, |
| }, |
| listeners: { |
| @@ -81,7 +86,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; |
| - } |
| + }, |
| }); |