From 1b72449496ce3a057a43d002c8042d5e7a1d6576 Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 7 Feb 2026 16:36:19 +0000 Subject: Add directive init mechanism --- .../src/components/directives/DirectiveDetail.tsx | 28 +++++++++++++++------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'makima/frontend/src/components/directives') diff --git a/makima/frontend/src/components/directives/DirectiveDetail.tsx b/makima/frontend/src/components/directives/DirectiveDetail.tsx index 3634a79..e519b92 100644 --- a/makima/frontend/src/components/directives/DirectiveDetail.tsx +++ b/makima/frontend/src/components/directives/DirectiveDetail.tsx @@ -8,6 +8,7 @@ interface DirectiveDetailProps { directive: DirectiveWithChains; onBack: () => void; onDelete?: (id: string) => void; + onStart?: (id: string) => void; } const statusColors: Record = { @@ -79,6 +80,7 @@ export function DirectiveDetail({ directive, onBack, onDelete, + onStart, }: DirectiveDetailProps) { return (
@@ -101,14 +103,24 @@ export function DirectiveDetail({ v{directive.version} - {onDelete && ( - - )} +
+ {onStart && directive.status === "draft" && ( + + )} + {onDelete && ( + + )} +

{directive.title} -- cgit v1.2.3