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

Unified Diff: chrome/browser/resources/md_downloads/crisper.js

Issue 2311093002: MD WebUI: Use dom-if to control hidden elements in <cr-toolbar> (Closed)
Patch Set: Fix tests Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/vulcanized.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/crisper.js
diff --git a/chrome/browser/resources/md_downloads/crisper.js b/chrome/browser/resources/md_downloads/crisper.js
index 28697f1d74e84446d5b49ae58e13a4634cffcc1a..788866b9d98d22cdeb30ab383b5e2f42e590fb09 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -6679,7 +6679,11 @@ Polymer({
type: Boolean,
reflectToAttribute: true
},
- hasSearchText_: Boolean
+ hasSearchText_: Boolean,
+ isSpinnerShown_: {
+ type: Boolean,
+ computed: 'computeIsSpinnerShown_(spinnerActive, showingSearch)'
+ }
},
listeners: {
tap: 'showSearch_',
@@ -6694,8 +6698,8 @@ Polymer({
computeIconTabIndex_: function(narrow) {
return narrow ? 0 : -1;
},
- isSpinnerShown_: function(spinnerActive, showingSearch) {
- return spinnerActive && showingSearch;
+ computeIsSpinnerShown_: function() {
+ return this.spinnerActive && this.showingSearch;
},
onInputBlur_: function() {
if (!this.hasSearchText_) this.showingSearch = false;
« no previous file with comments | « no previous file | chrome/browser/resources/md_downloads/vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698