Hide output sends if no images
This commit is contained in:
@@ -6,8 +6,8 @@ import C2S from "canvas-to-svg";
|
|||||||
import { download } from "./utils";
|
import { download } from "./utils";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* InComfyBox a template contains a subgraph and the set of components it
|
* In ComfyBox a template contains a subset of nodes in the graph and the set of
|
||||||
* represents in the UI.
|
* components they represent in the UI.
|
||||||
*/
|
*/
|
||||||
export type ComfyBoxTemplate = {
|
export type ComfyBoxTemplate = {
|
||||||
nodes: LGraphNode[],
|
nodes: LGraphNode[],
|
||||||
@@ -16,8 +16,8 @@ export type ComfyBoxTemplate = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* InComfyBox a template contains a subgraph and the set of components it
|
* In ComfyBox a template contains a subset of nodes in the graph and the set of
|
||||||
* represents in the UI.
|
* components they represent in the UI.
|
||||||
*/
|
*/
|
||||||
export type SerializedComfyBoxTemplate = {
|
export type SerializedComfyBoxTemplate = {
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
<div class="prompt-display">
|
<div class="prompt-display">
|
||||||
<div class="prompt-and-sends">
|
<div class="prompt-and-sends">
|
||||||
<Block>
|
<Block>
|
||||||
<Accordion label="Prompt" open={expandAll}>
|
<Accordion label="Prompt" open={expandAll || comfyBoxImages.length === 0}>
|
||||||
<div class="scroll-container">
|
<div class="scroll-container">
|
||||||
<Block>
|
<Block>
|
||||||
{#each Object.entries(prompt) as [nodeID, inputs], i}
|
{#each Object.entries(prompt) as [nodeID, inputs], i}
|
||||||
@@ -180,18 +180,20 @@
|
|||||||
</div>
|
</div>
|
||||||
</Accordion>
|
</Accordion>
|
||||||
</Block>
|
</Block>
|
||||||
<Block>
|
{#if comfyBoxImages.length > 0}
|
||||||
<Accordion label="Send Outputs To..." open={true}>
|
<Block>
|
||||||
<Block>
|
<Accordion label="Send Outputs To..." open={true}>
|
||||||
<BlockTitle>Output type: {litegraphType}</BlockTitle>
|
<Block>
|
||||||
{#if receiveTargets.length > 0}
|
<BlockTitle>Output type: {litegraphType}</BlockTitle>
|
||||||
<ReceiveOutputTargets {receiveTargets} on:select={(e) => sendOutput(e.detail.workflow, e.detail.targetNode)} />
|
{#if receiveTargets.length > 0}
|
||||||
{:else}
|
<ReceiveOutputTargets {receiveTargets} on:select={(e) => sendOutput(e.detail.workflow, e.detail.targetNode)} />
|
||||||
<div class="outputs-message">No receive output targets found across all workflows.</div>
|
{:else}
|
||||||
{/if}
|
<div class="outputs-message">No receive output targets found across all workflows.</div>
|
||||||
</Block>
|
{/if}
|
||||||
</Accordion>
|
</Block>
|
||||||
</Block>
|
</Accordion>
|
||||||
|
</Block>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{#if images.length > 0}
|
{#if images.length > 0}
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user