Browse Source

Added user filtering by email and username

Added user filtering by email and username
juxiang 4 months ago
parent
commit
55b0ac85d1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/components/admin/Users/UserList.svelte

+ 2 - 1
src/lib/components/admin/Users/UserList.svelte

@@ -85,8 +85,9 @@
 				return true;
 			} else {
 				let name = user.name.toLowerCase();
+				let email = user.email.toLowerCase();
 				const query = search.toLowerCase();
-				return name.includes(query);
+				return name.includes(query) || email.includes(query);
 			}
 		})
 		.sort((a, b) => {