Hide "Show More" when there are no more builds.
Fixes travis-ci/travis-ci#1057
This commit is contained in:
parent
e100eea2d8
commit
e093b5b90a
|
@ -15,5 +15,5 @@ Travis.BuildsController = Em.ArrayController.extend
|
|||
@get('content').load Travis.Build.olderThanNumber(id, number, @get('tab'))
|
||||
|
||||
displayShowMoreButton: (->
|
||||
@get('tab') != 'branches'
|
||||
).property('tab')
|
||||
@get('tab') != 'branches' and parseInt(@get('lastObject.number')) > 1
|
||||
).property('tab', 'lastObject.number')
|
||||
|
|
Loading…
Reference in New Issue
Block a user