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

Unified Diff: chrome/browser/resources/md_history/history.js

Issue 1864023002: MD History: Add spinners when new data is loading or searching (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_history/history.js
diff --git a/chrome/browser/resources/md_history/history.js b/chrome/browser/resources/md_history/history.js
index 63f28ea5ca28f25b52be5641e62fad042f9c5fcf..5a6bec800249b8ebd4f38fc497ddf8489c3aaa45 100644
--- a/chrome/browser/resources/md_history/history.js
+++ b/chrome/browser/resources/md_history/history.js
@@ -62,7 +62,7 @@ window.addEventListener('delete-selected', function() {
* When the search is changed refresh the results from the backend.
*/
window.addEventListener('search-changed', function(e) {
- /** @type {HistoryListElement} */($('history-list')).setLoading();
+ /** @type {HistoryListElement} */($('history-list')).setSearching();
chrome.send('queryHistory', [e.detail.search, 0, 0, 0, RESULTS_PER_PAGE]);
});

Powered by Google App Engine
This is Rietveld 408576698