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();
|
html += formElements[i].getHtml();
|
||||||
}
|
}
|
||||||
|
|
||||||
const buttons = [];
|
let buttons = null;
|
||||||
if (extraButton) {
|
if (extraButton) {
|
||||||
buttons.push(extraButton);
|
buttons = [extraButton, "cancel", confirmButton];
|
||||||
|
} else {
|
||||||
|
buttons = ["cancel", confirmButton];
|
||||||
}
|
}
|
||||||
buttons.push("cancel:bad", confirmButton);
|
|
||||||
super({
|
super({
|
||||||
app,
|
app,
|
||||||
title: title,
|
title: title,
|
||||||
|
|
Reference in New Issue