Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6622 show no members message #6718

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add condition change statement to display error message if no users a…
…re found
  • Loading branch information
Mutugiii committed Jun 30, 2020
commit 5529f22c06209e944d524642995eeea50bc1b14a
1 change: 1 addition & 0 deletions src/app/users/users.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class UsersComponent implements OnInit, OnDestroy {
this.usersService.usersListener().pipe(takeUntil(this.onDestroy$)).subscribe(users => {
this.dialogsLoadingService.stop();
this.users = users.filter((user: any) => this.excludeIds.indexOf(user._id) === -1);
this.emptyData = !this.users.length;
});
this.searchChange.pipe(debounceTime(500), takeUntil(this.onDestroy$)).subscribe((searchText) => {
if (this.isDialog) {
Expand Down