No need to load builds into repo.builds
Builds on repo model already incorporate all of the builds that belong to a given repo and are loaded into a store, so no need to load them to expandable array.
This commit is contained in:
parent
2d0aee4e68
commit
6efb2ac449
|
@ -14,7 +14,7 @@ export default Ember.Controller.extend({
|
||||||
id = this.get('repo.id');
|
id = this.get('repo.id');
|
||||||
number = this.get('builds.lastObject.number');
|
number = this.get('builds.lastObject.number');
|
||||||
type = this.get('tab') === "builds" ? 'push' : 'pull_request';
|
type = this.get('tab') === "builds" ? 'push' : 'pull_request';
|
||||||
return this.get('builds').load(this.olderThanNumber(id, number, type));
|
this.olderThanNumber(id, number, type);
|
||||||
},
|
},
|
||||||
|
|
||||||
displayShowMoreButton: function() {
|
displayShowMoreButton: function() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user