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: show a not-allowed cursor for the prompt editor in build mode (#41243)

Joel18d3990ae60e
diff --git a/web/features/agent-v2/agent-detail/configure/components/orchestrate/prompt-editor/index.tsx b/web/features/agent-v2/agent-detail/configure/components/orchestrate/prompt-editor/index.tsx
index c9d575a653d..6fec81ed7b1 100644
--- a/web/features/agent-v2/agent-detail/configure/components/orchestrate/prompt-editor/index.tsx
+++ b/web/features/agent-v2/agent-detail/configure/components/orchestrate/prompt-editor/index.tsx
@@ -1130,7 +1130,7 @@ export function AgentPromptEditor() {
aria-labelledby="agent-configure-prompt-label"
compact
wrapperClassName="min-h-[104px]"
- className="min-h-26 text-text-primary"
+ className={cn('min-h-26 text-text-primary', readOnly && 'cursor-not-allowed')}
placeholder={promptPlaceholder}
placeholderClassName="top-0!"
editable={!readOnly}