fix: remove comment, reorganize variables, refs AC-2559

This commit is contained in:
Vincent Salucci 2024-05-16 21:41:54 -05:00
parent 3e8950f584
commit 089a3a5a97
No known key found for this signature in database
GPG Key ID: 0B070977863C1E19
1 changed files with 2 additions and 5 deletions

View File

@ -100,14 +100,10 @@ export abstract class BasePeopleComponent<
protected pageSize = 100;
protected destroy$ = new Subject<void>();
private pagedUsersCount = 0;
protected searchControl = new FormControl("", { nonNullable: true });
protected isSearching$ = this.searchControl.valueChanges.pipe(
concatMap((searchText) => this.searchService.isSearchable(searchText)),
);
protected isPaging$ = this.isSearching$.pipe(
map((isSearching) => {
if (isSearching && this.didScroll) {
@ -119,6 +115,8 @@ export abstract class BasePeopleComponent<
}),
);
private pagedUsersCount = 0;
constructor(
protected apiService: ApiService,
private searchService: SearchService,
@ -142,7 +140,6 @@ export abstract class BasePeopleComponent<
abstract reinviteUser(id: string): Promise<void>;
abstract confirmUser(user: UserType, publicKey: Uint8Array): Promise<void>;
// Empty now??
ngOnInit(): void {}
ngOnDestroy(): void {