From 8f757f561eeb397aaea70d7c10d41445cc5e50b5 Mon Sep 17 00:00:00 2001 From: soryu Date: Sat, 7 Feb 2026 16:58:38 +0000 Subject: Show directive init on frontend --- makima/frontend/src/routes/directives.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'makima/frontend/src/routes') diff --git a/makima/frontend/src/routes/directives.tsx b/makima/frontend/src/routes/directives.tsx index 8b82f99..9437389 100644 --- a/makima/frontend/src/routes/directives.tsx +++ b/makima/frontend/src/routes/directives.tsx @@ -129,6 +129,13 @@ function DirectivesContent() { [startDirective, fetchDirective] ); + const handleRefresh = useCallback( + (updated: DirectiveWithChains) => { + setSelectedDirective(updated); + }, + [] + ); + // Detail view if (id) { if (detailLoading) { @@ -152,6 +159,7 @@ function DirectivesContent() { onBack={handleBack} onDelete={handleDelete} onStart={handleStart} + onRefresh={handleRefresh} /> ); -- cgit v1.2.3