From 4d11ff4ed546cd5b5de34b07d83cdc6c91cf71f0 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 10 Aug 2015 12:28:19 -0400 Subject: [PATCH] Fix page reload on user to org conversion Fixes #339 --- static/js/directives/ui/convert-user-to-org.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/js/directives/ui/convert-user-to-org.js b/static/js/directives/ui/convert-user-to-org.js index 47bdd4e0f..9f3ef7851 100644 --- a/static/js/directives/ui/convert-user-to-org.js +++ b/static/js/directives/ui/convert-user-to-org.js @@ -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); };