diff --git a/frontend/src/features/workspace/OutlinerBlock.tsx b/frontend/src/features/workspace/OutlinerBlock.tsx index 9a28d14..5ad4e48 100644 --- a/frontend/src/features/workspace/OutlinerBlock.tsx +++ b/frontend/src/features/workspace/OutlinerBlock.tsx @@ -816,13 +816,19 @@ export const OutlinerBlock: React.FC = ({ {block.type === 'todo' && ( {block.taskId && ( - e.stopPropagation()} + onClick={(e) => { + e.stopPropagation(); + onOpenTask?.(block.taskId as string); + }} + className="badge-accent text-[9px] inline-flex items-center gap-0.5 px-1.5 py-0.2 rounded font-medium shrink-0 cursor-pointer hover:opacity-80" + title="Erweiterte Aufgabe öffnen" > Erweitert - + )} {canEdit && ( @@ -861,6 +867,7 @@ export const OutlinerBlock: React.FC = ({ type: 'todo', }; onUpdateBlockRef.current(updatedBlock, true); + onOpenTask?.(thought.id); } catch (err: any) { alert(err.message || 'Fehler beim Erstellen der erweiterten Aufgabe'); }