Skip to content

Commit

Permalink
fix: update remaining references to user.userModel
Browse files Browse the repository at this point in the history
  • Loading branch information
jrassa committed Mar 12, 2024
1 parent 743dd45 commit e8d989c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<div class="my-3">
<ng-select
name="teamAdmin"
bindLabel="userModel.name"
bindLabel="name"
placeholder="Search..."
style="width: 200px"
[(ngModel)]="selectedValue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h3>Add users</h3>
<ng-select
name="teamAdmin"
appendTo="body"
bindLabel="userModel.name"
bindLabel="name"
cdkFocusInitial
placeholder="Search for user..."
#selectDropdown
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/teams/create-team/create-team.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>
<label class="form-required">Team Admin</label>
<ng-select
name="teamAdmin"
bindLabel="userModel.name"
bindLabel="name"
placeholder="Search for user..."
style="width: 400px"
[(ngModel)]="teamAdmin"
Expand Down
4 changes: 2 additions & 2 deletions src/app/core/teams/team-member.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export class TeamMember extends User {
public roleDisplay = TeamRole.getDisplay(this.role);

constructor(model: any, team?: Team) {
super();
super(model);
if (model) {
this.setFromTeamMemberModel(team, model);
this.setFromTeamMemberModel(model, team);
}
}

Expand Down

0 comments on commit e8d989c

Please sign in to comment.