From 87f4c18c490a0328d6e693d9868548c394878c28 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 15 Jan 2014 14:20:39 -0500 Subject: [PATCH] Set the default namespace to the new org when created --- static/js/controllers.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/controllers.js b/static/js/controllers.js index 2464d1257..1fc1c8f97 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -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 + '/');