Merge branch 'testing' into rotate

Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2023-01-12 01:03:07 -03:00
commit 9186d2a387
2 changed files with 15 additions and 1 deletions

View file

@ -373,7 +373,7 @@
src="js/ui/tool/generic.js?v=9f1f84e"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=76bc565" type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=95c916d" type="text/javascript"></script>
<script
src="js/ui/tool/maskbrush.js?v=1e8a893"
type="text/javascript"></script>

View file

@ -775,6 +775,20 @@ const _generate = async (endpoint, request, bb, options = {}) => {
});
imageSelectMenu.appendChild(resourcebtn);
const deletebtn = document.createElement("button");
deletebtn.textContent = "D";
deletebtn.title = "Delete Image";
deletebtn.addEventListener("click", async () => {
images.splice(at, 1);
seeds.splice(at, 1);
at = Math.min(at, images.length - 1);
imageindextxt.textContent = `${at}/${images.length - 1}`;
redraw();
});
imageSelectMenu.appendChild(deletebtn);
const savebtn = document.createElement("button");
savebtn.textContent = "S";
savebtn.title = "Download image to computer";