We don't need to check isComplete now
We load records based on the tries to load attributes that are not loaded yet, so isComplete is obsolete now.
This commit is contained in:
parent
b164e5f1a8
commit
cc1df67272
|
@ -1,5 +1,5 @@
|
|||
{{#with view}}
|
||||
{{#if job.isComplete}}
|
||||
{{#if job.isLoaded}}
|
||||
<div {{bindAttr class="view.color"}}>
|
||||
<dl id="summary">
|
||||
<div class="left">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{#if view.isEmpty}}
|
||||
{{view Travis.ReposEmptyView}}
|
||||
{{else}}
|
||||
{{#if view.repo.isComplete}}
|
||||
{{#if view.repo.isLoaded}}
|
||||
{{#with view.repo}}
|
||||
<h3>
|
||||
<a {{bindAttr href="view.urlGithub"}}>{{slug}}</a>
|
||||
|
|
|
@ -6,12 +6,8 @@
|
|||
repoBinding: 'controller.repo'
|
||||
|
||||
class: (->
|
||||
'loading' if !@get('repo.isComplete') && !@get('isEmpty')
|
||||
).property('repo.isComplete')
|
||||
|
||||
isEmpty: (->
|
||||
@get('repos.isLoaded') && @get('repos.length') == 0
|
||||
).property('repos.length')
|
||||
'loading' unless @get('repo.isLoaded')
|
||||
).property('repo.isLoaded')
|
||||
|
||||
urlGithub: (->
|
||||
Travis.Urls.githubRepo(@get('repo.slug'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user