Make sure to reload the user information when joining a team. This makes sure the org drop down is updated

This commit is contained in:
Joseph Schorr 2014-11-18 14:23:53 -05:00
parent 003afc0c25
commit d476b35a6e

View file

@ -2926,6 +2926,7 @@ function ConfirmInviteCtrl($scope, $location, UserService, ApiService, Notificat
ApiService.acceptOrganizationTeamInvite(null, params).then(function(resp) {
NotificationService.update();
UserService.load();
$location.path('/organization/' + resp.org + '/teams/' + resp.team);
}, function(resp) {
$scope.loading = false;