Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
f13c0cef
Commit
f13c0cef
authored
Mar 28, 2023
by
comfyanonymous
Browse files
Merge branch 'clean-current-state' of
https://github.com/FaridSafi/ComfyUI
parents
ac1fd924
40a37777
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
web/scripts/app.js
web/scripts/app.js
+9
-0
web/scripts/ui.js
web/scripts/ui.js
+4
-1
No files found.
web/scripts/app.js
View file @
f13c0cef
...
...
@@ -721,6 +721,8 @@ class ComfyApp {
* @param {*} graphData A serialized graph object
*/
loadGraphData
(
graphData
)
{
this
.
clean
();
if
(
!
graphData
)
{
graphData
=
defaultGraph
;
}
...
...
@@ -903,6 +905,13 @@ class ComfyApp {
}
}
}
/**
* Clean current state
*/
clean
()
{
this
.
nodeOutputs
=
{};
}
}
export
const
app
=
new
ComfyApp
();
web/scripts/ui.js
View file @
f13c0cef
...
...
@@ -388,7 +388,10 @@ export class ComfyUI {
}),
$el
(
"
button
"
,
{
textContent
:
"
Load
"
,
onclick
:
()
=>
fileInput
.
click
()
}),
$el
(
"
button
"
,
{
textContent
:
"
Refresh
"
,
onclick
:
()
=>
app
.
refreshComboInNodes
()
}),
$el
(
"
button
"
,
{
textContent
:
"
Clear
"
,
onclick
:
()
=>
app
.
graph
.
clear
()
}),
$el
(
"
button
"
,
{
textContent
:
"
Clear
"
,
onclick
:
()
=>
{
app
.
clean
();
app
.
graph
.
clear
();
}}),
$el
(
"
button
"
,
{
textContent
:
"
Load Default
"
,
onclick
:
()
=>
app
.
loadGraphData
()
}),
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment