1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

pr comments

This commit is contained in:
Peter Clement 2022-08-01 09:03:47 +01:00
parent 323c23b4d8
commit 847fc6c4e5
2 changed files with 10 additions and 5 deletions

View file

@ -53,10 +53,6 @@
href: "/builder/portal/manage/users", href: "/builder/portal/manage/users",
heading: "Manage", heading: "Manage",
}, },
isEnabled(FEATURE_FLAGS.USER_GROUPS) && {
title: "User Groups",
href: "/builder/portal/manage/groups",
},
{ title: "Auth", href: "/builder/portal/manage/auth" }, { title: "Auth", href: "/builder/portal/manage/auth" },
{ title: "Email", href: "/builder/portal/manage/email" }, { title: "Email", href: "/builder/portal/manage/email" },
{ {
@ -70,6 +66,15 @@
}, },
]) ])
if (isEnabled(FEATURE_FLAGS.USER_GROUPS)) {
let item = {
title: "User Groups",
href: "/builder/portal/manage/groups",
}
menu.splice(1, 0, item)
}
if (!$adminStore.cloud) { if (!$adminStore.cloud) {
menu = menu.concat([ menu = menu.concat([
{ {

View file

@ -31,7 +31,7 @@ export const allUsers = async () => {
} }
export const countUsersByApp = async (appId: string) => { export const countUsersByApp = async (appId: string) => {
let response: any = await usersCore.searchGlobalUsersByApp(appId) let response: any = await usersCore.searchGlobalUsersByApp(appId, {})
return { return {
userCount: response.length, userCount: response.length,
} }