parent
5b5b1d16b8
commit
4d11ff4ed5
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,7 @@ angular.module('quay').directive('convertUserToOrg', function () {
|
||||||
scope: {
|
scope: {
|
||||||
'user': '=user'
|
'user': '=user'
|
||||||
},
|
},
|
||||||
controller: function($scope, $element, Features, PlanService, Config, ApiService, CookieService, UserService) {
|
controller: function($scope, $element, $location, Features, PlanService, Config, ApiService, CookieService, UserService) {
|
||||||
$scope.convertStep = 0;
|
$scope.convertStep = 0;
|
||||||
$scope.org = {};
|
$scope.org = {};
|
||||||
$scope.loading = false;
|
$scope.loading = false;
|
||||||
|
@ -51,7 +51,6 @@ angular.module('quay').directive('convertUserToOrg', function () {
|
||||||
|
|
||||||
ApiService.convertUserToOrganization(data).then(function(resp) {
|
ApiService.convertUserToOrganization(data).then(function(resp) {
|
||||||
CookieService.putPermanent('quay.namespace', $scope.user.username);
|
CookieService.putPermanent('quay.namespace', $scope.user.username);
|
||||||
UserService.load();
|
|
||||||
$location.path('/');
|
$location.path('/');
|
||||||
}, errorHandler);
|
}, errorHandler);
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue