Fix it so the user admin page shows the plan pay dialog when loaded with the proper parameter

This commit is contained in:
Joseph Schorr 2013-11-06 18:14:22 -05:00
parent 62d057d7aa
commit fb1732d069
3 changed files with 27 additions and 12 deletions

View file

@ -675,11 +675,10 @@ function UserAdminCtrl($scope, $timeout, Restangular, PlanService, UserService,
$scope.loading = false;
}, true);
// Show the subscribe dialog if a plan was requested.
var requested = $routeParams['plan']
if (requested !== undefined && requested !== 'free') {
// TODO: this.
}
$scope.readyForPlan = function() {
// Show the subscribe dialog if a plan was requested.
return $routeParams['plan'];
};
$scope.loading = true;
$scope.updatingUser = false;