feat(registratura): fix thread clear, close via conex entry
- Fix threadParentId clear: always show "Sterge" button even when parent not found in allEntries - Bigger clear button with text label instead of tiny X icon - Fallback display when parent not in current list (shows truncated ID) - Close via conex: table/detail "Inchide" now creates a new reply entry that closes the original - Header shows "Conex la BTG-XXX" + "Inchide originala" badge when closing via conex - After saving the new conex entry, parent is auto-closed with resolution "finalizat" - onClose signature changed from (id: string) to (entry: RegistryEntry) across table + detail Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -48,7 +48,7 @@ interface RegistryEntryDetailProps {
|
||||
open: boolean;
|
||||
onOpenChange: (open: boolean) => void;
|
||||
onEdit: (entry: RegistryEntry) => void;
|
||||
onClose: (id: string) => void;
|
||||
onClose: (entry: RegistryEntry) => void;
|
||||
onDelete: (id: string) => void;
|
||||
/** Create a new entry linked as reply (conex) to this entry */
|
||||
onReply?: (entry: RegistryEntry) => void;
|
||||
@@ -224,7 +224,7 @@ export function RegistryEntryDetail({
|
||||
className="text-green-600 border-green-300 hover:bg-green-50 dark:border-green-700 dark:hover:bg-green-950/30"
|
||||
onClick={() => {
|
||||
onOpenChange(false);
|
||||
onClose(entry.id);
|
||||
onClose(entry);
|
||||
}}
|
||||
>
|
||||
<CheckCircle2 className="mr-1.5 h-3.5 w-3.5" /> Inchide
|
||||
|
||||
Reference in New Issue
Block a user