From 53c444eb6b0670071fe32eb4dc269ca34d70cc43 Mon Sep 17 00:00:00 2001 From: Silversith Date: Fri, 7 Apr 2023 15:22:33 +0200 Subject: [PATCH] Fix Clear and Delete --- output/_output_images_will_be_put_here | 0 web/extensions/core/imageFeed.js | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 output/_output_images_will_be_put_here diff --git a/output/_output_images_will_be_put_here b/output/_output_images_will_be_put_here deleted file mode 100644 index e69de29bb..000000000 diff --git a/web/extensions/core/imageFeed.js b/web/extensions/core/imageFeed.js index 6bafe2c65..501b4c772 100644 --- a/web/extensions/core/imageFeed.js +++ b/web/extensions/core/imageFeed.js @@ -208,7 +208,7 @@ app.registerExtension({ right: "5px", }); clearButton.onclick = () => { - imageList.replaceChildren(closeButton, clearButton); + imageList.replaceChildren(menu, resizeHandle); }; const deleteAllButton = makeButton("🗑️ Delete", { top: "55px", @@ -216,7 +216,7 @@ app.registerExtension({ }); deleteAllButton.onclick = () => { api.deleteAllImages(); - imageList.replaceChildren(closeButton, clearButton); + imageList.replaceChildren(menu, resizeHandle); }; showButton.classList.add("comfy-settings-btn");