mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-25 07:21:00 +02:00
k
This commit is contained in:
parent
ab5e515a5a
commit
5f4b31d322
@ -206,9 +206,9 @@ def list_all_users(
|
|||||||
invited=[InvitedUserSnapshot(email=email) for email in invited_emails][
|
invited=[InvitedUserSnapshot(email=email) for email in invited_emails][
|
||||||
invited_page * USERS_PAGE_SIZE : (invited_page + 1) * USERS_PAGE_SIZE
|
invited_page * USERS_PAGE_SIZE : (invited_page + 1) * USERS_PAGE_SIZE
|
||||||
],
|
],
|
||||||
accepted_pages=accepted_count // USERS_PAGE_SIZE + 1,
|
accepted_pages=(accepted_count + USERS_PAGE_SIZE - 1) // USERS_PAGE_SIZE,
|
||||||
invited_pages=invited_count // USERS_PAGE_SIZE + 1,
|
invited_pages=(invited_count + USERS_PAGE_SIZE - 1) // USERS_PAGE_SIZE,
|
||||||
slack_users_pages=slack_users_count // USERS_PAGE_SIZE + 1,
|
slack_users_pages=(slack_users_count + USERS_PAGE_SIZE - 1) // USERS_PAGE_SIZE,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,12 +47,8 @@ export function Modal({
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {
|
const handleMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {
|
||||||
if (
|
// Only close if the user clicked exactly on the overlay (and not on a child element).
|
||||||
onOutsideClick &&
|
if (onOutsideClick && e.target === e.currentTarget) {
|
||||||
modalRef.current &&
|
|
||||||
!modalRef.current.contains(e.target as Node) &&
|
|
||||||
!isEventWithinRef(e.nativeEvent, modalRef)
|
|
||||||
) {
|
|
||||||
onOutsideClick();
|
onOutsideClick();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -69,14 +69,6 @@
|
|||||||
"path": "indexing/status",
|
"path": "indexing/status",
|
||||||
"pageTitle": "Existing Connectors"
|
"pageTitle": "Existing Connectors"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "Custom Assistants - Prompt Library",
|
|
||||||
"path": "prompt-library",
|
|
||||||
"pageTitle": "Prompt Library",
|
|
||||||
"options": {
|
|
||||||
"paragraphText": "Create prompts that can be accessed with the `/` shortcut in Onyx Chat. Prompts created here will be accessible to all users."
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "User Management - Groups",
|
"name": "User Management - Groups",
|
||||||
"path": "groups",
|
"path": "groups",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user