Skip to content

Commit

Permalink
fix(club): show the active club
Browse files Browse the repository at this point in the history
  • Loading branch information
cskiwi committed Jul 31, 2024
1 parent cdb94f4 commit 63f5435
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@
@if (option.memberId) {
<small class="member-id">({{ option.memberId }}) </small>
}
@if (
option.clubs && option.clubs.length > 0 && option.clubs[0].id !== this.clubId()
) {
<small>{{ option.clubs[0].name }}</small>
@if (option.club && option.club.id !== this.clubId()) {
<small>{{ option.club.name }}</small>
}
@if (validation.message) {
<div class="invalid-player">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ export class PlayerSearchComponent implements OnChanges, OnInit {
clubMembership {
id
membershipType
active
confirmed
}
}
}
Expand Down Expand Up @@ -206,6 +208,8 @@ export class PlayerSearchComponent implements OnChanges, OnInit {
clubMembership {
id
membershipType
active
confirmed
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ export class EditRoleComponent implements OnInit {
private dialog = inject(MatDialog);

roleId = input.required<string>();

type = input.required<SecurityType[] | SecurityType>();

role?: Signal<Role | undefined>;
Expand Down

0 comments on commit 63f5435

Please sign in to comment.