From f28a7218cd8b4c101225cda73e179174d236100d Mon Sep 17 00:00:00 2001 From: yessenia Date: Wed, 15 Oct 2025 14:12:39 +0800 Subject: [PATCH] fix(trigger): optimize subscription entry in workflow --- .../subscription-list/create/index.tsx | 10 ++-- .../use-subscription-list.ts | 2 +- .../_base/components/workflow-panel/index.tsx | 41 ++++----------- .../workflow-panel/node-auth-factory.tsx | 48 ----------------- .../workflow-panel/trigger-subscription.tsx | 52 +++++++++++++++++++ .../components/subscription-menu.tsx | 43 --------------- 6 files changed, 68 insertions(+), 128 deletions(-) delete mode 100644 web/app/components/workflow/nodes/_base/components/workflow-panel/node-auth-factory.tsx create mode 100644 web/app/components/workflow/nodes/_base/components/workflow-panel/trigger-subscription.tsx delete mode 100644 web/app/components/workflow/nodes/trigger-plugin/components/subscription-menu.tsx diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx index 3cb4f93de4..d4eeb498f6 100644 --- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/index.tsx @@ -63,7 +63,7 @@ export const CreateSubscriptionButton = ({ buttonType = CreateButtonType.FULL_BU } }, [t]) - const onClickClientSettings = (e: React.MouseEvent) => { + const onClickClientSettings = (e: React.MouseEvent) => { e.stopPropagation() e.preventDefault() showClientSettingsModal() @@ -171,7 +171,7 @@ export const CreateSubscriptionButton = ({ buttonType = CreateButtonType.FULL_BU