From c6f5f35ee08091c988a7ce56db25b49628ca7688 Mon Sep 17 00:00:00 2001 From: Geoffrey Schorkopf Date: Wed, 17 Aug 2016 15:52:49 -0400 Subject: [PATCH] Cleans up several ArrayController's to Controller * Except reviews and course rounds --- app/controllers/course-rounds.js | 1 + app/controllers/courses/index.js | 2 +- app/controllers/friendable-users.js | 2 +- app/controllers/friends.js | 2 +- app/controllers/turns.js | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/controllers/course-rounds.js b/app/controllers/course-rounds.js index 70ce5e0..6997225 100644 --- a/app/controllers/course-rounds.js +++ b/app/controllers/course-rounds.js @@ -1,5 +1,6 @@ import Ember from 'ember'; +// TODO: Change to just Controller var CourseRoundsController = Ember.ArrayController.extend({ // Pagination page: 1, diff --git a/app/controllers/courses/index.js b/app/controllers/courses/index.js index 4a9124d..47a1dfa 100644 --- a/app/controllers/courses/index.js +++ b/app/controllers/courses/index.js @@ -1,6 +1,6 @@ import Ember from 'ember'; -var CoursesIndexController = Ember.ArrayController.extend({ +var CoursesIndexController = Ember.Controller.extend({ queryParams: ["page"], pageBinding: "content.page", diff --git a/app/controllers/friendable-users.js b/app/controllers/friendable-users.js index 28a7e43..bee17ee 100644 --- a/app/controllers/friendable-users.js +++ b/app/controllers/friendable-users.js @@ -1,6 +1,6 @@ import Ember from 'ember'; -var FriendableUsersController = Ember.ArrayController.extend({ +var FriendableUsersController = Ember.Controller.extend({ selection: null, query: null, diff --git a/app/controllers/friends.js b/app/controllers/friends.js index 7149e1c..cfe3438 100644 --- a/app/controllers/friends.js +++ b/app/controllers/friends.js @@ -1,7 +1,7 @@ import Ember from 'ember'; import pagedArray from 'ember-cli-pagination/computed/paged-array'; -var FriendsController = Ember.ArrayController.extend({ +var FriendsController = Ember.Controller.extend({ pagedContent: pagedArray("content", {infinite: true}), hasNextPage: function() { diff --git a/app/controllers/turns.js b/app/controllers/turns.js index 56c7cb5..985461b 100644 --- a/app/controllers/turns.js +++ b/app/controllers/turns.js @@ -1,6 +1,6 @@ import Ember from 'ember'; -var TurnsController = Ember.ArrayController.extend({ +var TurnsController = Ember.Controller.extend({ holeNumber: Ember.computed.alias('model.firstObject.holeNumber'), holePar: Ember.computed.alias('model.firstObject.par'),