Rename
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
@@ -869,7 +869,7 @@ input[type=range]::-ms-fill-upper {
|
||||
}
|
||||
}
|
||||
|
||||
.unlock-button {
|
||||
.comfy-toggle-button {
|
||||
> .lg {
|
||||
border-color: var(--ae-subpanel-border-color) !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user