From 6ecd0f68cf1f07b46c3590413017b4311259b163 Mon Sep 17 00:00:00 2001 From: Hyu Date: Fri, 9 Oct 2026 21:24:42 +0800 Subject: [PATCH] fix(bots): inline disabled routes with enable switches --- .../bot-form/EventBindingsEditor.tsx | 79 +++++++------------ 1 file changed, 28 insertions(+), 51 deletions(-) diff --git a/web/src/app/home/bots/components/bot-form/EventBindingsEditor.tsx b/web/src/app/home/bots/components/bot-form/EventBindingsEditor.tsx index 56fbcba89..990b0dd3c 100644 --- a/web/src/app/home/bots/components/bot-form/EventBindingsEditor.tsx +++ b/web/src/app/home/bots/components/bot-form/EventBindingsEditor.tsx @@ -39,6 +39,7 @@ import { XCircle, } from 'lucide-react'; import { Button } from '@/components/ui/button'; +import { Switch } from '@/components/ui/switch'; import { Badge } from '@/components/ui/badge'; import { Popover, @@ -1211,7 +1212,7 @@ function BindingCardContent({ return (
)} + {!isEnabled &&
- {/* disabled section */} - {disabledBindings.length > 0 && ( -
- - {disabledSectionOpen && ( -
- {disabledBindings.map(({ b, i }) => ( - - ))} -
- )} -
- )} + ); }