Merge pull request #341 from coreos-inc/orgconvert

Fix page reload on user to org conversion
This commit is contained in:
Jimmy Zelinskie 2015-08-10 12:30:08 -04:00
commit af214cc35d

View file

@ -11,7 +11,7 @@ angular.module('quay').directive('convertUserToOrg', function () {
scope: {
'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.org = {};
$scope.loading = false;
@ -51,7 +51,6 @@ angular.module('quay').directive('convertUserToOrg', function () {
ApiService.convertUserToOrganization(data).then(function(resp) {
CookieService.putPermanent('quay.namespace', $scope.user.username);
UserService.load();
$location.path('/');
}, errorHandler);
};