Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>
This commit is contained in:
Victor Seiji Hariki 2023-01-10 14:30:09 -03:00
parent b166efc5e2
commit 487f3bed0c
2 changed files with 15 additions and 1 deletions

View file

@ -371,7 +371,7 @@
src="js/ui/tool/generic.js?v=2bcd36d"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=a2932df" type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=0d639fe" 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";