Use one-way binding in loading indicator for gr-change-view

Also hide the changes via the hidden attribute upon initial load.
The evaluation of hidden$= will set it correctly.

Change-Id: I7d3207c622e03988da2c3020a2c698811b299f9a
This commit is contained in:
Andrew Bonventre 2016-01-11 20:48:23 -05:00
parent c05ef8a2a6
commit 1de642461b

View File

@ -56,8 +56,8 @@ limitations under the License.
params="[[_computeQueryParams(query, offset)]]"
last-response="{{_changes}}"
loading="{{_loading}}"></gr-ajax>
<div class="loading" hidden$="{{!_loading}}">Loading...</div>
<div hidden$="{{_loading}}">
<div class="loading" hidden$="[[!_loading]]">Loading...</div>
<div hidden$="[[_loading]]" hidden>
<gr-change-list changes="{{_changes}}"></gr-change-list>
<nav>
<a href$="[[_computeNavLink(query, offset, -1)]]"