mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-27 12:29:41 +02:00
k
This commit is contained in:
@@ -47,12 +47,8 @@ export function Modal({
|
||||
}, []);
|
||||
|
||||
const handleMouseDown = (e: React.MouseEvent<HTMLDivElement>) => {
|
||||
if (
|
||||
onOutsideClick &&
|
||||
modalRef.current &&
|
||||
!modalRef.current.contains(e.target as Node) &&
|
||||
!isEventWithinRef(e.nativeEvent, modalRef)
|
||||
) {
|
||||
// Only close if the user clicked exactly on the overlay (and not on a child element).
|
||||
if (onOutsideClick && e.target === e.currentTarget) {
|
||||
onOutsideClick();
|
||||
}
|
||||
};
|
||||
|
@@ -69,14 +69,6 @@
|
||||
"path": "indexing/status",
|
||||
"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",
|
||||
"path": "groups",
|
||||
|
Reference in New Issue
Block a user