Fix another bug in user conversion
This commit is contained in:
parent
65d0332176
commit
7789e99b99
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ angular.module('quay').directive('convertUserToOrg', function () {
|
||||||
controller: function($scope, $element, Features, PlanService, Config, ApiService, CookieService, UserService) {
|
controller: function($scope, $element, Features, PlanService, Config, ApiService, CookieService, UserService) {
|
||||||
$scope.convertStep = 0;
|
$scope.convertStep = 0;
|
||||||
$scope.org = {};
|
$scope.org = {};
|
||||||
|
$scope.loading = false;
|
||||||
|
|
||||||
$scope.showConvertForm = function() {
|
$scope.showConvertForm = function() {
|
||||||
if (Features.BILLING) {
|
if (Features.BILLING) {
|
||||||
|
@ -45,7 +46,7 @@ angular.module('quay').directive('convertUserToOrg', function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
ApiService.convertUserToOrganization(data).then(function(resp) {
|
ApiService.convertUserToOrganization(data).then(function(resp) {
|
||||||
CookieService.putPermanent('quay.namespace', $scope.cuser.username);
|
CookieService.putPermanent('quay.namespace', $scope.user.username);
|
||||||
UserService.load();
|
UserService.load();
|
||||||
$location.path('/');
|
$location.path('/');
|
||||||
}, function(resp) {
|
}, function(resp) {
|
||||||
|
|
Reference in a new issue