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> </script>
<div class="unlock-button" class:toggled> <div class="comfy-toggle-button" class:toggled>
<Button on:click={toggle} variant={toggled ? "primary" : "secondary"}> <Button on:click={toggle} variant={toggled ? "primary" : "secondary"}>
{#if toggled} {#if toggled}
<LockOpen2 /> <LockOpen2 />
@@ -20,7 +20,7 @@
</div> </div>
<style lang="scss"> <style lang="scss">
.unlock-button { .comfy-toggle-button {
display: inline-flex; display: inline-flex;
width: var(--size-12); width: var(--size-12);
height: 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) { override onPropertyChanged(property: string, value: any, prevValue?: any) {
if (property === "value") { if (property === "prompt") {
this.setOutputData(2, this.properties.prompt) this.setOutputData(2, value)
} }
} }
@@ -48,12 +48,12 @@ export class ComfyQueueEvents extends ComfyGraphNode {
} }
override beforeQueued(subgraph: string | null) { override beforeQueued(subgraph: string | null) {
this.setProperty("value", null) this.setProperty("prompt", null)
this.triggerSlot(0, this.getActionParams(subgraph)) this.triggerSlot(0, this.getActionParams(subgraph))
} }
override afterQueued(p: SerializedPrompt, subgraph: string | null) { override afterQueued(p: SerializedPrompt, subgraph: string | null) {
this.setProperty("value", p) this.setProperty("prompt", p)
this.triggerSlot(1, this.getActionParams(subgraph)) this.triggerSlot(1, this.getActionParams(subgraph))
} }

View File

@@ -869,7 +869,7 @@ input[type=range]::-ms-fill-upper {
} }
} }
.unlock-button { .comfy-toggle-button {
> .lg { > .lg {
border-color: var(--ae-subpanel-border-color) !important; border-color: var(--ae-subpanel-border-color) !important;
} }