make the brush discard dialogue more clear

change text from 'Yes' to 'Discard changes and switch brush'
This commit is contained in:
りき萌 2025-06-26 01:22:13 +02:00
parent 7a52dbebd0
commit 385a691e3e

View file

@ -178,11 +178,15 @@ export class BrushBox extends HTMLElement {
confirmation.addHtmlP(
"<strong>Your brush has unsaved changes.</strong>" +
"<br>Loading another brush will discard them." +
"<br>Switching to another brush will discard them." +
"<br>Are you sure?",
);
confirmation.addSeparator();
confirmation.addButton("Yes").addEventListener("click", () => {
confirmation
.addButton("Discard changes and switch brush", {
classList: ["destructive"],
})
.addEventListener("click", () => {
this.#sendBrushChange(preset);
});
confirmation.addHtmlP("Click anywhere else to cancel", {