Hide output sends if no images

This commit is contained in:
space-nuko
2023-05-24 09:26:18 -05:00
parent 76b9aa1b02
commit 6bbd18a261
2 changed files with 19 additions and 17 deletions

View File

@@ -6,8 +6,8 @@ import C2S from "canvas-to-svg";
import { download } from "./utils";
/*
* InComfyBox a template contains a subgraph and the set of components it
* represents in the UI.
* In ComfyBox a template contains a subset of nodes in the graph and the set of
* components they represent in the UI.
*/
export type ComfyBoxTemplate = {
nodes: LGraphNode[],
@@ -16,8 +16,8 @@ export type ComfyBoxTemplate = {
}
/*
* InComfyBox a template contains a subgraph and the set of components it
* represents in the UI.
* In ComfyBox a template contains a subset of nodes in the graph and the set of
* components they represent in the UI.
*/
export type SerializedComfyBoxTemplate = {
/*

View File

@@ -128,7 +128,7 @@
<div class="prompt-display">
<div class="prompt-and-sends">
<Block>
<Accordion label="Prompt" open={expandAll}>
<Accordion label="Prompt" open={expandAll || comfyBoxImages.length === 0}>
<div class="scroll-container">
<Block>
{#each Object.entries(prompt) as [nodeID, inputs], i}
@@ -180,6 +180,7 @@
</div>
</Accordion>
</Block>
{#if comfyBoxImages.length > 0}
<Block>
<Accordion label="Send Outputs To..." open={true}>
<Block>
@@ -192,6 +193,7 @@
</Block>
</Accordion>
</Block>
{/if}
</div>
{#if images.length > 0}
<div class="image-container">