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
6e40393b
"...resnet50_tensorflow.git" did not exist on "0c8714edd464efbd6e462b15f838810856e4f6b4"
Commit
6e40393b
authored
Feb 07, 2023
by
comfyanonymous
Browse files
Fix delete sometimes not properly refreshing queue state.
parent
d71d0c88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
webshit/index.html
webshit/index.html
+3
-3
No files found.
webshit/index.html
View file @
6e40393b
...
@@ -534,7 +534,7 @@ document.addEventListener('paste', e=>{
...
@@ -534,7 +534,7 @@ document.addEventListener('paste', e=>{
}
}
});
});
function
deleteQueueElement
(
delete_id
)
{
function
deleteQueueElement
(
delete_id
,
then
)
{
fetch
(
'
/queue
'
,
{
fetch
(
'
/queue
'
,
{
method
:
'
POST
'
,
method
:
'
POST
'
,
headers
:
{
headers
:
{
...
@@ -544,6 +544,7 @@ function deleteQueueElement(delete_id) {
...
@@ -544,6 +544,7 @@ function deleteQueueElement(delete_id) {
})
})
.
then
(
data
=>
{
.
then
(
data
=>
{
console
.
log
(
data
);
console
.
log
(
data
);
then
();
})
})
.
catch
(
error
=>
console
.
error
(
error
))
.
catch
(
error
=>
console
.
error
(
error
))
}
}
...
@@ -586,8 +587,7 @@ function loadQueue() {
...
@@ -586,8 +587,7 @@ function loadQueue() {
button
.
style
.
fontSize
=
"
10px
"
;
button
.
style
.
fontSize
=
"
10px
"
;
button
.
delete_id
=
id
;
button
.
delete_id
=
id
;
button
.
onclick
=
function
(
event
)
{
button
.
onclick
=
function
(
event
)
{
deleteQueueElement
(
event
.
target
.
delete_id
);
deleteQueueElement
(
event
.
target
.
delete_id
,
loadQueue
);
loadQueue
();
};
};
append_to_element
.
appendChild
(
button
);
append_to_element
.
appendChild
(
button
);
}
}
...
...
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