fixes
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
import { type WorkflowError } from "$lib/stores/workflowState";
|
||||
import ComfyQueueListDisplay from "./ComfyQueueListDisplay.svelte";
|
||||
import ComfyQueueGridDisplay from "./ComfyQueueGridDisplay.svelte";
|
||||
import { WORKFLOWS_VIEW } from "./ComfyBoxWorkflowsView.svelte";
|
||||
import uiQueueState, { type QueueUIEntry } from "$lib/stores/uiQueueState";
|
||||
import { WORKFLOWS_VIEW } from "./ComfyBoxWorkflowsView.svelte";
|
||||
import uiQueueState, { type QueueUIEntry } from "$lib/stores/uiQueueState";
|
||||
|
||||
export let app: ComfyApp;
|
||||
|
||||
|
||||
@@ -73,10 +73,10 @@ export default class ComfySetNodeModeAdvancedAction extends ComfyGraphNode {
|
||||
|
||||
if (hasTag) {
|
||||
let newMode: NodeMode;
|
||||
if (enable && action.enable) {
|
||||
newMode = NodeMode.ALWAYS;
|
||||
if (action.enable) {
|
||||
newMode = enable ? NodeMode.ALWAYS : NodeMode.NEVER;
|
||||
} else {
|
||||
newMode = NodeMode.NEVER;
|
||||
newMode = enable ? NodeMode.NEVER : NodeMode.ALWAYS;
|
||||
}
|
||||
nodeChanges[node.id] = newMode
|
||||
}
|
||||
@@ -88,7 +88,12 @@ export default class ComfySetNodeModeAdvancedAction extends ComfyGraphNode {
|
||||
const container = entry.dragItem;
|
||||
const hasTag = container.attrs.tags.indexOf(action.tag) != -1;
|
||||
if (hasTag) {
|
||||
const hidden = !(enable && action.enable)
|
||||
let hidden: boolean;
|
||||
if (action.enable) {
|
||||
hidden = !enable
|
||||
} else {
|
||||
hidden = enable;
|
||||
}
|
||||
widgetChanges[container.id] = hidden
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,7 +230,7 @@
|
||||
/>
|
||||
{:else}
|
||||
<div class="comfy-image-editor-panel">
|
||||
{#if _value && canMask}
|
||||
{#if _value && _value.length > 0 && canMask}
|
||||
{@const comfyURL = convertComfyOutputToComfyURL(_value[0])}
|
||||
<div class="mask-canvas-wrapper" style:display={editMask ? "block" : "none"}>
|
||||
<MaskCanvas bind:this={maskCanvasComp} fileURL={comfyURL} on:release={onMaskReleased} on:loaded={onMaskReleased} />
|
||||
|
||||
Reference in New Issue
Block a user