From 7789e99b99d6dd92de7bde8af9e19c118a694ea1 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 5 May 2015 11:59:31 -0700 Subject: [PATCH] Fix another bug in user conversion --- static/js/directives/ui/convert-user-to-org.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/directives/ui/convert-user-to-org.js b/static/js/directives/ui/convert-user-to-org.js index 98fcd3079..dc2b16c72 100644 --- a/static/js/directives/ui/convert-user-to-org.js +++ b/static/js/directives/ui/convert-user-to-org.js @@ -14,6 +14,7 @@ angular.module('quay').directive('convertUserToOrg', function () { controller: function($scope, $element, Features, PlanService, Config, ApiService, CookieService, UserService) { $scope.convertStep = 0; $scope.org = {}; + $scope.loading = false; $scope.showConvertForm = function() { if (Features.BILLING) { @@ -45,7 +46,7 @@ angular.module('quay').directive('convertUserToOrg', function () { }; ApiService.convertUserToOrganization(data).then(function(resp) { - CookieService.putPermanent('quay.namespace', $scope.cuser.username); + CookieService.putPermanent('quay.namespace', $scope.user.username); UserService.load(); $location.path('/'); }, function(resp) {