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'))
|
@get('content').load Travis.Build.olderThanNumber(id, number, @get('tab'))
|
||||||
|
|
||||||
displayShowMoreButton: (->
|
displayShowMoreButton: (->
|
||||||
@get('tab') != 'branches'
|
@get('tab') != 'branches' and parseInt(@get('lastObject.number')) > 1
|
||||||
).property('tab')
|
).property('tab', 'lastObject.number')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user