Skip to content

Commit

Permalink
Merge pull request techx#22 from patins/update-team-on-join
Browse files Browse the repository at this point in the history
Update the team view when a team is joined
  • Loading branch information
jlin816 authored May 12, 2017
2 parents 7788fca + c354048 commit f39563c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/client/views/team/teamCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ angular.module('reg')

$scope.TEAM = TEAM;

if ($scope.user.teamCode){
function _populateTeammates() {
UserService
.getMyTeammates()
.success(function(users){
Expand All @@ -25,6 +25,10 @@ angular.module('reg')
});
}

if ($scope.user.teamCode){
_populateTeammates();
}

$scope.joinTeam = function(){
UserService
.joinOrCreateTeam($scope.code)
Expand Down

0 comments on commit f39563c

Please sign in to comment.