diff --git a/app/components/branch-row.coffee b/app/components/branch-row.coffee index 25ee44bb..cbdbb7fb 100644 --- a/app/components/branch-row.coffee +++ b/app/components/branch-row.coffee @@ -17,6 +17,14 @@ BranchRowComponent = Ember.Component.extend getLast5Builds: (-> + array = [{}, {}, {}, {}, {}] + + if @get('build.last_build') == null + @set('isLoading', false) + array + else + array + # apiEndpoint = config.apiEndpoint # repoId = @get('build.repository.id') @@ -29,4 +37,14 @@ BranchRowComponent = Ember.Component.extend # @set('isLoading', false) ).property('build') + actions: + tiggerBuild: (branch) -> + console.log('trigger build') + + viewAllBuilds: (branch) -> + console.log('view all builds') + # updateFilter: (value) -> + # @set('_lastFilterValue', value) + # Ember.run.throttle this, @updateFilter, [], 200, false + `export default BranchRowComponent` diff --git a/app/controllers/branches.coffee b/app/controllers/branches.coffee index 7cf00272..a0a0c96e 100644 --- a/app/controllers/branches.coffee +++ b/app/controllers/branches.coffee @@ -22,14 +22,4 @@ BranchesController = Ember.Controller.extend item if item.exists_on_github == false ).property('model') - actions: - tiggerBuild: (branch) -> - console.log('trigger build') - - viewAllBuilds: (branch) -> - console.log('view all builds') - # updateFilter: (value) -> - # @set('_lastFilterValue', value) - # Ember.run.throttle this, @updateFilter, [], 200, false - `export default BranchesController` diff --git a/app/templates/components/branch-row.hbs b/app/templates/components/branch-row.hbs index d70e952d..2313b85f 100644 --- a/app/templates/components/branch-row.hbs +++ b/app/templates/components/branch-row.hbs @@ -163,14 +163,8 @@