fix: show direct upload in workflow style step
This commit is contained in:
parent
90b6cd442c
commit
7164304451
@ -1660,6 +1660,8 @@ export function AgentGenerationWorkspaceDarkV2({
|
||||
const [activeToolStep, setActiveToolStep] = useState<ToolStepKey>("preset");
|
||||
const hasBrandModelStep = Boolean(brandModelPanel) && modelSlotEnabled;
|
||||
const hasWorkflowStyleStep = Boolean(workflowStylePanel) || hasBrandModelStep;
|
||||
const shouldShowDirectUploadInStyleStep =
|
||||
isDirectReferenceUploadEnabled && hasWorkflowStyleStep;
|
||||
const visibleWorkflowSectionKeys = useMemo(
|
||||
() => [
|
||||
...(isPresetStepEnabled ? ["mode"] : []),
|
||||
@ -4589,6 +4591,7 @@ export function AgentGenerationWorkspaceDarkV2({
|
||||
</div>
|
||||
|
||||
<div className="space-y-4">
|
||||
{shouldShowDirectUploadInStyleStep ? attachmentSlotPanel : null}
|
||||
{workflowStylePanel}
|
||||
{hasBrandModelStep ? brandModelPanel : null}
|
||||
</div>
|
||||
@ -4647,7 +4650,7 @@ export function AgentGenerationWorkspaceDarkV2({
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
{isDirectReferenceUploadEnabled ||
|
||||
{(!shouldShowDirectUploadInStyleStep && isDirectReferenceUploadEnabled) ||
|
||||
(hasAgentUploadSlots && isAttachmentSlotExpanded)
|
||||
? attachmentSlotPanel
|
||||
: null}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user