Add the business plans in.

This commit is contained in:
yackob03 2013-11-05 14:40:45 -05:00
parent 1cd4fa8d9b
commit b11ab44285
6 changed files with 145 additions and 46 deletions

View file

@ -131,7 +131,7 @@ function SigninCtrl($scope, $location, $timeout, Restangular, KeyService, UserSe
function PlansCtrl($scope, UserService, PlanService) {
// Load the list of plans.
PlanService.getPlanList(function(plans) {
PlanService.getPlans(function(plans) {
$scope.plans = plans;
$scope.status = 'ready';
});
@ -673,8 +673,8 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) {
function UserAdminCtrl($scope, $timeout, Restangular, PlanService, UserService, KeyService, $routeParams) {
// Load the list of plans.
PlanService.getPlanList(function(plans) {
$scope.plans = plans;
PlanService.getPlans(function(plans) {
$scope.plans = plans.user;
});
$scope.$watch(function () { return UserService.currentUser(); }, function (currentUser) {