mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-05 17:14:03 +00:00
Adjust cancel button color
This commit is contained in:
parent
99c945e169
commit
76fb637606
@ -376,11 +376,12 @@ export class DialogWithForm extends Dialog {
|
||||
html += formElements[i].getHtml();
|
||||
}
|
||||
|
||||
const buttons = [];
|
||||
let buttons = null;
|
||||
if (extraButton) {
|
||||
buttons.push(extraButton);
|
||||
buttons = [extraButton, "cancel", confirmButton];
|
||||
} else {
|
||||
buttons = ["cancel", confirmButton];
|
||||
}
|
||||
buttons.push("cancel:bad", confirmButton);
|
||||
super({
|
||||
app,
|
||||
title: title,
|
||||
|
Loading…
Reference in New Issue
Block a user