make the brush discard dialogue more clear
change text from 'Yes' to 'Discard changes and switch brush'
This commit is contained in:
parent
7a52dbebd0
commit
385a691e3e
1 changed files with 8 additions and 4 deletions
|
@ -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", {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue