Set the default namespace to the new org when created
This commit is contained in:
parent
b6d4459080
commit
87f4c18c49
1 changed files with 4 additions and 1 deletions
|
@ -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 + '/');
|
||||
|
|
Reference in a new issue