diff --git a/surfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsx b/surfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsx index c397fcf3e..8618d68e9 100644 --- a/surfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsx +++ b/surfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsx @@ -17,12 +17,14 @@ export function HitlEditPanelContent({ content: initialContent, onSave, onClose, + showCloseButton = true, }: { title: string; content: string; toolName: string; onSave: (title: string, content: string) => void; onClose?: () => void; + showCloseButton?: boolean; }) { const [editedTitle, setEditedTitle] = useState(initialTitle); const markdownRef = useRef(initialContent); @@ -49,7 +51,7 @@ export function HitlEditPanelContent({ className="flex-1 min-w-0 bg-transparent text-sm font-semibold text-foreground outline-none placeholder:text-muted-foreground" aria-label="Page title" /> - {onClose && ( + {onClose && showCloseButton && (