Fix showMore
We use ArrayProxy with SortableMixin as container for builds, so it needs to proxy load method to expandable record array. closes #49
This commit is contained in:
parent
630de8efc3
commit
a039da5dd1
|
@ -9,6 +9,11 @@ Travis.RepoController = Travis.Controller.extend
|
|||
sortProperties: ['number']
|
||||
sortAscending: false
|
||||
content: []
|
||||
isLoadingBinding: 'content.isLoading'
|
||||
load: (records) ->
|
||||
content = @get('content')
|
||||
if content && content.load
|
||||
content.load(records)
|
||||
)
|
||||
|
||||
updateTimes: ->
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
buildsBinding: 'controller.builds'
|
||||
|
||||
showMore: ->
|
||||
id = @get('controller.repo.id')
|
||||
id = @get('controller.repo.id')
|
||||
number = @get('builds.lastObject.number')
|
||||
@get('builds').load Travis.Build.olderThanNumber(id, number)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user