feat(invitations): exchange an invitation with scores, the invitation can invite friend join us.

This commit is contained in:
OldHawk
2017-06-13 17:28:54 +08:00
parent 5090769c29
commit ddb9b05756
8 changed files with 93 additions and 16 deletions

View File

@@ -26,6 +26,11 @@
$scope.$on('$stateChangeSuccess', stateChangeSuccess);
$scope.$on('auth-user-score-changed', function(event, args) {
vm.user = Authentication.user;
vm.scoreLevelData = vm.user ? ScoreLevelService.getScoreLevelJson(vm.user.score) : undefined;
});
function stateChangeSuccess() {
// Collapsing the menu after navigation
vm.isCollapsed = false;