Add loading indicator for jobs list
This also fixes an occasional bug which occurs when jobs list is being displayed, but job data is not loaded yet and links are not rendering properly.
This commit is contained in:
parent
0ce971bd60
commit
69d6f9e8a1
|
@ -15,7 +15,8 @@
|
||||||
{{#each job in view.jobs}}
|
{{#each job in view.jobs}}
|
||||||
{{#view 'jobs-item' context=job}}
|
{{#view 'jobs-item' context=job}}
|
||||||
<div {{bind-attr class=":tile :tile--jobs :row job.state" }}>
|
<div {{bind-attr class=":tile :tile--jobs :row job.state" }}>
|
||||||
{{#link-to "job" repo job}}
|
{{#if job.config}}
|
||||||
|
{{#link-to "job" job.repo job}}
|
||||||
|
|
||||||
<div class="tile-status tile-status--job">
|
<div class="tile-status tile-status--job">
|
||||||
<span {{bind-attr class=":icon :icon--job job.state"}}></span>
|
<span {{bind-attr class=":icon :icon--job job.state"}}></span>
|
||||||
|
@ -70,6 +71,9 @@
|
||||||
</p> --}}
|
</p> --}}
|
||||||
|
|
||||||
{{/link-to}}
|
{{/link-to}}
|
||||||
|
{{else}}
|
||||||
|
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/view}}
|
{{/view}}
|
||||||
{{!-- {{job.configKeys}} --}}
|
{{!-- {{job.configKeys}} --}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user