Added more staff data
This commit is contained in:
@@ -21,16 +21,9 @@ function filterParticipants(participants: Participant[], searchFilter: string):
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ParticipantsService {
|
||||
private _allParticipants$: Observable<Participant[]> = this.httpClient
|
||||
.get<Participant[]>(`${environment.apiBase}/participants`)
|
||||
.pipe(
|
||||
map(participants =>
|
||||
participants.map(participant => ({
|
||||
...participant,
|
||||
fullName: `${participant.firstName} ${participant.lastName}`,
|
||||
}))
|
||||
)
|
||||
);
|
||||
private _allParticipants$: Observable<Participant[]> = this.httpClient.get<Participant[]>(
|
||||
`${environment.apiBase}/participants`
|
||||
);
|
||||
private _activeParticipantsSortBy$ = new BehaviorSubject<SortBy | null>({ key: 'handleBefore', reverse: false });
|
||||
public activeParticipantsSortBy$: Observable<SortBy> = this._activeParticipantsSortBy$.asObservable();
|
||||
private _followUpParticipantsSortBy$ = new BehaviorSubject<SortBy | null>({ key: 'handleBefore', reverse: false });
|
||||
|
||||
Reference in New Issue
Block a user