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";
|
||||
|
||||
/*
|
||||
* 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 = {
|
||||
/*
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user