diff --git a/static/src/app/users/user-list/user-item.component.html b/static/src/app/users/user-list/user-item.component.html index 53fca86..9831890 100644 --- a/static/src/app/users/user-list/user-item.component.html +++ b/static/src/app/users/user-list/user-item.component.html @@ -1,9 +1,9 @@ -
+
- {{user.username}} + {{user.username}}
CSAT - {{user.squad.name}} @@ -12,8 +12,8 @@
- - + +
diff --git a/static/src/app/users/user-list/user-list.component.html b/static/src/app/users/user-list/user-list.component.html index 23e2902..347e042 100644 --- a/static/src/app/users/user-list/user-list.component.html +++ b/static/src/app/users/user-list/user-list.component.html @@ -44,7 +44,7 @@ [user]="user" (userDelete)="deleteUser(user)" (userSelected)="selectUser($event)" - (userAward)="awardUser($event)" + (userAward)="awardUser($event, $event)" [selected]="user._id == selectedUserId">
diff --git a/static/src/app/users/user-list/user-list.component.ts b/static/src/app/users/user-list/user-list.component.ts index 91de1c3..a40812a 100644 --- a/static/src/app/users/user-list/user-list.component.ts +++ b/static/src/app/users/user-list/user-list.component.ts @@ -57,7 +57,7 @@ export class UserListComponent implements OnInit { this.router.navigate([{outlets: {'right': ['overview', userId]}}], {relativeTo: this.route}); } - awardUser(userId: string) { + awardUser(userId) { this.selectedUserId = userId; this.router.navigate([{outlets: {'right': ['award', userId]}}], {relativeTo: this.route}); }