From b31bf43e15507f4c900f5b3b6ee19203cf914038 Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 4 Apr 2026 19:59:43 +0800 Subject: [PATCH] fix: hide usage config and health check buttons for official providers Official providers use built-in subscription quota display instead of custom usage scripts, and stream check is not applicable. Hide both action buttons when isOfficialProvider is true. --- src/components/providers/ProviderActions.tsx | 22 +++++++++++--------- src/components/providers/ProviderCard.tsx | 6 ++++-- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/components/providers/ProviderActions.tsx b/src/components/providers/ProviderActions.tsx index fdead3c21..d776ae21a 100644 --- a/src/components/providers/ProviderActions.tsx +++ b/src/components/providers/ProviderActions.tsx @@ -28,7 +28,7 @@ interface ProviderActionsProps { onEdit: () => void; onDuplicate: () => void; onTest?: () => void; - onConfigureUsage: () => void; + onConfigureUsage?: () => void; onDelete: () => void; onRemoveFromConfig?: () => void; onDisableOmo?: () => void; @@ -263,15 +263,17 @@ export function ProviderActions({ )} - + {onConfigureUsage && ( + + )} {onOpenTerminal && (