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