fix(users): repair create delete and duplicate email handling
This commit is contained in:
parent
155fdbb16a
commit
0bbcaba211
22 changed files with 773 additions and 107 deletions
18
validation-suite/frontend/atlas/lib/users-query.js
Normal file
18
validation-suite/frontend/atlas/lib/users-query.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
export function buildUsersQueryParams({ page, pageSize, search, role, active, sortBy, sortOrder }) {
|
||||
const params = new URLSearchParams({
|
||||
page: String(page),
|
||||
page_size: String(pageSize),
|
||||
sort_by: sortBy,
|
||||
sort_order: sortOrder
|
||||
});
|
||||
if (search && search.trim()) {
|
||||
params.set("search", search.trim());
|
||||
}
|
||||
if (role) {
|
||||
params.set("role", role);
|
||||
}
|
||||
if (active === true || active === false) {
|
||||
params.set("active", String(active));
|
||||
}
|
||||
return params;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue