Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: resolve overlap issue with API Extension selector and modal (#9407)

DDDDD12138a87890b3cc37
diff --git a/web/app/components/header/account-setting/api-based-extension-page/selector.tsx b/web/app/components/header/account-setting/api-based-extension-page/selector.tsx
index 3ac85e135b2..fb1b22df345 100644
--- a/web/app/components/header/account-setting/api-based-extension-page/selector.tsx
+++ b/web/app/components/header/account-setting/api-based-extension-page/selector.tsx
@@ -81,7 +81,10 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
</div>
<div
className='flex items-center text-xs text-primary-600 cursor-pointer'
- onClick={() => setShowAccountSettingModal({ payload: 'api-based-extension' })}
+ onClick={() => {
+ setOpen(false)
+ setShowAccountSettingModal({ payload: 'api-based-extension' })
+ }}
>
{t('common.apiBasedExtension.selector.manage')}
<ArrowUpRight className='ml-0.5 w-3 h-3' />
@@ -106,7 +109,10 @@ const ApiBasedExtensionSelector: FC<ApiBasedExtensionSelectorProps> = ({
<div className='p-1'>
<div
className='flex items-center px-3 h-8 text-sm text-primary-600 cursor-pointer'
- onClick={() => setShowApiBasedExtensionModal({ payload: {}, onSaveCallback: () => mutate() })}
+ onClick={() => {
+ setOpen(false)
+ setShowApiBasedExtensionModal({ payload: {}, onSaveCallback: () => mutate() })
+ }}
>
<RiAddLine className='mr-2 w-4 h-4' />
{t('common.operation.add')}