Fix messages on empty repos list
This commit is contained in:
parent
9170795639
commit
218a078164
|
@ -86,3 +86,14 @@ Travis.ReposController = Ember.ArrayController.extend
|
|||
@searchLater = Ember.run.later(this, (->
|
||||
@activate 'search', search: phrase
|
||||
), 500)
|
||||
|
||||
noReposMessage: (->
|
||||
tab = @get('tab')
|
||||
|
||||
if tab == 'owned'
|
||||
'You don\'t have any repos set up on Travis CI'
|
||||
else if tab == 'recent'
|
||||
'Repositories could not be loaded'
|
||||
else
|
||||
'Could not find any repos'
|
||||
).property('tab')
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<div class="indicator"><span></span></div>
|
||||
{{/with}}
|
||||
{{else}}
|
||||
<p class="empty">You don't have any repos set up on Travis CI</p>
|
||||
<p class="empty">{{noReposMessage}}</p>
|
||||
{{/collection}}
|
||||
{{else}}
|
||||
<div class="loading"><span>Loading</span></div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user