Skip to content

Commit

Permalink
"add a team member" button allowed to appear after initial search eve…
Browse files Browse the repository at this point in the history
…n if there are some matches/partial matches.
  • Loading branch information
will-craig committed Nov 13, 2023
1 parent 7a30aba commit 4bc997a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('ManageTeamComponent', () => {
expect(users.length).toEqual(20);
expect(message).toContain('please refine your search to see more results.');
expect(displayMessage).toBeTruthy();
expect(displayAddButton).toBeFalsy();
expect(displayAddButton).toBeTruthy();
done();
}
);
Expand Down Expand Up @@ -108,7 +108,7 @@ describe('ManageTeamComponent', () => {
([users, displayAddButton, isAnErrorMessage, displayMessage]: [JusticeUserResponse[], boolean, boolean, boolean]) => {
expect(users.length).toEqual(10);
expect(displayMessage).toBeFalsy();
expect(displayAddButton).toBeFalsy();
expect(displayAddButton).toBeTruthy();
expect(isAnErrorMessage).toBeFalsy();
done();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ManageTeamComponent implements OnInit, OnDestroy {
this.users$ = this.justiceUserService.filteredUsers$.pipe(
takeUntil(this.destroyed$),
tap(users => {
this.displayAddButton$.next(false);
this.displayAddButton$.next(true);
this.isAnErrorMessage$.next(false);
this.displayMessage$.next(false);
this.message$.next(null);
Expand Down

0 comments on commit 4bc997a

Please sign in to comment.