From 80560206d1968766936a5e6227ff3e8d44623ae8 Mon Sep 17 00:00:00 2001 From: William Craig Date: Wed, 15 Nov 2023 16:37:37 +0000 Subject: [PATCH] "add a team member" button allowed to appear after initial search even if there are some matches/partial matches. (#1299) --- .../app/manage-team/manage-team/manage-team.component.spec.ts | 4 ++-- .../src/app/manage-team/manage-team/manage-team.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts index 142d73875..f7fb75e28 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts @@ -82,7 +82,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(); } ); @@ -111,7 +111,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(); } diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts index a35d5b76c..248e169db 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts @@ -63,7 +63,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);