Since the reset-form functionality got moved into the header tools in
commit
046ec35 ("fix #5277: move reset button into window header
toolbar") we can unconditionally set the initial buttons, as those
will always just contain the submit one now.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
me.title = Proxmox.Utils.dialog_title(me.subject, me.isCreate, me.isAdd);
}
- if (me.isCreate || !me.showReset) {
- me.buttons = [submitBtn];
- } else {
- me.buttons = [submitBtn];
+ me.buttons = [submitBtn];
+
+ if (!me.isCreate && me.showReset)) {
me.tools = [resetTool];
}