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: hide chat features drawer while opener dialog is active (#41530)

Joel336dd0b8c08b
diff --git a/web/app/components/base/features/new-feature-panel/index.tsx b/web/app/components/base/features/new-feature-panel/index.tsx
index 67343c7834c..1f4194d3918 100644
--- a/web/app/components/base/features/new-feature-panel/index.tsx
+++ b/web/app/components/base/features/new-feature-panel/index.tsx
@@ -17,6 +17,7 @@ import SpeechToText from '@/app/components/base/features/new-feature-panel/speec
import TextToSpeech from '@/app/components/base/features/new-feature-panel/text-to-speech'
import { ModelTypeEnum } from '@/app/components/header/account-setting/model-provider-page/declarations'
import { useDefaultModel } from '@/app/components/header/account-setting/model-provider-page/hooks'
+import { useModalContext } from '@/context/modal-context'
type Props = Readonly<{
show: boolean
@@ -56,10 +57,11 @@ const NewFeaturePanel = ({
const { t } = useTranslation()
const { data: speech2textDefaultModel } = useDefaultModel(ModelTypeEnum.speech2text)
const { data: text2speechDefaultModel } = useDefaultModel(ModelTypeEnum.tts)
+ const { hasBlockingModalOpen } = useModalContext()
return (
<FeaturePanelDrawer
- show={show}
+ show={show && !hasBlockingModalOpen}
onClose={onClose}
inWorkflow={inWorkflow}
className={drawerClassName}