Fix show-more button

This commit is contained in:
Piotr Sarnacki 2015-05-12 18:32:53 +02:00
parent b9cf051575
commit d398f468b8

View File

@ -16,7 +16,8 @@ Controller = Ember.ArrayController.extend
showMore: ->
id = @get('repo.id')
number = @get('lastObject.number')
@get('content').load @olderThanNumber(id, number, @get('tab'))
type = if @get('tab') == "builds" then 'push' else 'pull_request'
@get('content').load @olderThanNumber(id, number, type)
displayShowMoreButton: (->
@get('tab') != 'branches' and parseInt(@get('lastObject.number')) > 1