diff --git a/app/controllers/branches.js b/app/controllers/branches.js index 8d71816d..d53f2a91 100644 --- a/app/controllers/branches.js +++ b/app/controllers/branches.js @@ -13,6 +13,12 @@ export default Ember.Controller.extend({ } }.property('model'), + branchesExist: function() { + var branches = this.get('model'); + + return branches.length; + }.property('model'), + activeBranches: function() { var repos; repos = this.get('model'); diff --git a/app/templates/branches.hbs b/app/templates/branches.hbs index 0f977b11..1d54dcea 100644 --- a/app/templates/branches.hbs +++ b/app/templates/branches.hbs @@ -1,11 +1,13 @@ -{{#if defaultBranch}} +{{#if branchesExist}}