Filter out blocked in search

This commit is contained in:
SondreB 2023-01-11 01:22:06 +01:00
parent 30fb72ac24
commit 58f100fc4e
No known key found for this signature in database
GPG Key ID: D6CC44C75005FDBF

View File

@ -113,6 +113,11 @@ export class ProfileService {
// this.table.filter((x) => x.name.toLowerCase().indexOf(searchText) > -1).toArray();
return this.table
.filter((profile) => {
if (profile.status == 3) {
// Filter out blocked results.
return false;
}
let index = profile.name?.toLocaleLowerCase().indexOf(searchText);
if (index > -1) {