mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-01 03:04:11 +00:00
Fix bypass display issue (#144)
* Fix bypass display issue * nit * Update test expectations [skip ci] --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -1547,11 +1547,13 @@ export class ComfyApp {
|
||||
this.editor_alpha = 0.4;
|
||||
}
|
||||
|
||||
// Mode never equals 4 by ts check.
|
||||
// if (node.mode === 4) { // never
|
||||
// node.bgcolor = "#FF00FF";
|
||||
// this.editor_alpha = 0.2;
|
||||
// }
|
||||
// ComfyUI's custom node mode enum value 4 => bypass/never.
|
||||
// @ts-ignore
|
||||
if (node.mode === 4) {
|
||||
// never
|
||||
node.bgcolor = "#FF00FF";
|
||||
this.editor_alpha = 0.2;
|
||||
}
|
||||
|
||||
const adjustColor = (color?: string) => {
|
||||
return color ? lightenColor(color, 0.5) : color;
|
||||
|
||||
Reference in New Issue
Block a user