Set the default namespace to the new org when created

This commit is contained in:
Joseph Schorr 2014-01-15 14:20:39 -05:00
parent b6d4459080
commit 87f4c18c49

View file

@ -1558,7 +1558,7 @@ function OrgsCtrl($scope, UserService) {
browserchrome.update();
}
function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, PlanService, ApiService) {
function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, PlanService, ApiService, CookieService) {
UserService.updateUserIn($scope);
var requested = $routeParams['plan'];
@ -1604,6 +1604,9 @@ function NewOrgCtrl($scope, $routeParams, $timeout, $location, UserService, Plan
// Reset the organizations list.
UserService.load();
// Set the default namesapce to the organization.
CookieService.putPermanent('quay.namespace', org.name);
var showOrg = function() {
$scope.creating = false;
$location.path('/organization/' + org.name + '/');