From b50dcedde1ea1fbaa9815df3dafe4a29ad5acbf4 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 21 May 2026 20:07:49 +0800 Subject: [PATCH] auto-sync: 2026-05-21 20:07:49 --- src/frontend/src/components/TaskModal.tsx | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/frontend/src/components/TaskModal.tsx b/src/frontend/src/components/TaskModal.tsx index cb8063f..5ff350b 100644 --- a/src/frontend/src/components/TaskModal.tsx +++ b/src/frontend/src/components/TaskModal.tsx @@ -181,28 +181,21 @@ function StatusButtons({ status, taskId, onAction }: { status: string; taskId: s } }; - const btn = (b: typeof primary[0]) => ( + const btn = (b: typeof buttons[0]) => ( ); + if (buttons.length === 0) { + return
-
; + } + return (
-
{primary.map(b => btn(b))}
- {advanced.length > 0 && ( -
- {!showAdvanced ? ( - - ) : ( -
- {advanced.map(b => btn(b))} - -
- )} +
{buttons.map(b => btn(b))}
+
)}