mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-24 05:10:18 +08:00
Fix Clear and Delete
This commit is contained in:
parent
1fda5d19de
commit
53c444eb6b
@ -208,7 +208,7 @@ app.registerExtension({
|
|||||||
right: "5px",
|
right: "5px",
|
||||||
});
|
});
|
||||||
clearButton.onclick = () => {
|
clearButton.onclick = () => {
|
||||||
imageList.replaceChildren(closeButton, clearButton);
|
imageList.replaceChildren(menu, resizeHandle);
|
||||||
};
|
};
|
||||||
const deleteAllButton = makeButton("🗑️ Delete", {
|
const deleteAllButton = makeButton("🗑️ Delete", {
|
||||||
top: "55px",
|
top: "55px",
|
||||||
@ -216,7 +216,7 @@ app.registerExtension({
|
|||||||
});
|
});
|
||||||
deleteAllButton.onclick = () => {
|
deleteAllButton.onclick = () => {
|
||||||
api.deleteAllImages();
|
api.deleteAllImages();
|
||||||
imageList.replaceChildren(closeButton, clearButton);
|
imageList.replaceChildren(menu, resizeHandle);
|
||||||
};
|
};
|
||||||
|
|
||||||
showButton.classList.add("comfy-settings-btn");
|
showButton.classList.add("comfy-settings-btn");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user