This commit is contained in:
space-nuko
2023-05-06 18:02:36 -05:00
parent 2ddf4b1889
commit 69905b5d19
3 changed files with 7 additions and 7 deletions

View File

@@ -9,7 +9,7 @@
}
</script>
<div class="unlock-button" class:toggled>
<div class="comfy-toggle-button" class:toggled>
<Button on:click={toggle} variant={toggled ? "primary" : "secondary"}>
{#if toggled}
<LockOpen2 />
@@ -20,7 +20,7 @@
</div>
<style lang="scss">
.unlock-button {
.comfy-toggle-button {
display: inline-flex;
width: var(--size-12);
height: var(--size-12);

View File

@@ -25,8 +25,8 @@ export class ComfyQueueEvents extends ComfyGraphNode {
}
override onPropertyChanged(property: string, value: any, prevValue?: any) {
if (property === "value") {
this.setOutputData(2, this.properties.prompt)
if (property === "prompt") {
this.setOutputData(2, value)
}
}
@@ -48,12 +48,12 @@ export class ComfyQueueEvents extends ComfyGraphNode {
}
override beforeQueued(subgraph: string | null) {
this.setProperty("value", null)
this.setProperty("prompt", null)
this.triggerSlot(0, this.getActionParams(subgraph))
}
override afterQueued(p: SerializedPrompt, subgraph: string | null) {
this.setProperty("value", p)
this.setProperty("prompt", p)
this.triggerSlot(1, this.getActionParams(subgraph))
}