Browse Source

Merge pull request #10271 from juquxiang/feat_user_query

Added user filtering by email and username
Timothy Jaeryang Baek 4 months ago
parent
commit
6f792e0558
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) => {