From acb8d462a502e14682cb2db0fec1fafd2ce06485 Mon Sep 17 00:00:00 2001 From: Kori Roys Date: Fri, 10 Apr 2015 14:09:49 +0200 Subject: [PATCH] fix controller deprecation warnings for builds app --- source/javascripts/app/builds/app.js | 10 +++++----- .../app/builds/templates/_project_listing.js.hbs | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/source/javascripts/app/builds/app.js b/source/javascripts/app/builds/app.js index 8acd1d1b44..d4c99cd574 100644 --- a/source/javascripts/app/builds/app.js +++ b/source/javascripts/app/builds/app.js @@ -277,7 +277,7 @@ App.BuildCategoryMixin = Ember.Mixin.create({ } }); -App.ApplicationController = Ember.ObjectController.extend({ +App.ApplicationController = Ember.Controller.extend({ isIndexActive: function(){ return this.isActiveChannel('index'); }.property('currentRouteName'), @@ -388,7 +388,7 @@ App.CanaryRoute = Ember.Route.extend(App.BuildCategoryMixin, { } }); -App.CanaryController = Ember.ObjectController.extend(App.ProjectsMixin, { +App.CanaryController = Ember.Controller.extend(App.ProjectsMixin, { templateName: 'buildList', channel: 'canary' }); @@ -399,7 +399,7 @@ App.BetaRoute = Ember.Route.extend(App.BuildCategoryMixin, { } }); -App.BetaController = Ember.ObjectController.extend(App.ProjectsMixin, { +App.BetaController = Ember.Controller.extend(App.ProjectsMixin, { templateName: 'buildList', channel: 'beta' }); @@ -410,7 +410,7 @@ App.ReleaseRoute = Ember.Route.extend(App.BuildCategoryMixin, { } }); -App.ReleaseController = Ember.ObjectController.extend(App.ProjectsMixin, { +App.ReleaseController = Ember.Controller.extend(App.ProjectsMixin, { templateName: 'buildList', channel: 'release' }); @@ -426,7 +426,7 @@ App.TaggedRoute = Ember.Route.extend(App.BuildCategoryMixin, { } }); -App.TaggedController = Ember.ObjectController.extend(App.ProjectsMixin, { +App.TaggedController = Ember.Controller.extend(App.ProjectsMixin, { channel: 'tagged' }); /* diff --git a/source/javascripts/app/builds/templates/_project_listing.js.hbs b/source/javascripts/app/builds/templates/_project_listing.js.hbs index 3a5e5e3d2b..c1cb6df51b 100644 --- a/source/javascripts/app/builds/templates/_project_listing.js.hbs +++ b/source/javascripts/app/builds/templates/_project_listing.js.hbs @@ -1,15 +1,15 @@ -{{#if filesPresent }} +{{#if model.filesPresent }} {{#each projects as |project|}} {{partial 'filesTable'}} {{/each}} {{ else }}
- {{#if isLoading}} + {{#if model.isLoading}}

Loading...

{{else}} -

There are currently no builds for {{title}}. Please check back soon.

+

There are currently no builds for {{model.title}}. Please check back soon.

{{/if}} {{/if}}