mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-15 03:07:35 +00:00
pbs: followup: actually set cbind for all elements
we cannot have xtype nor cbind in the defaults, as moving xtype there breaks our cbind "when to stop descendant+apply" heuristic and cbind cannot be moved there as it'd be only copied over by initComponent and that happens later than the cbind apply step. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
158751a3b1
commit
a090fe1d1d
@ -118,22 +118,19 @@ Ext.define('PMG.PBSInputPanel', {
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Last'),
|
||||
name: 'keep-last',
|
||||
cbind: {
|
||||
deleteEmpty: (get) => !get('isCreate'),
|
||||
},
|
||||
cbind: { deleteEmpty: '{!isCreate}' },
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Daily'),
|
||||
name: 'keep-daily',
|
||||
cbind: {
|
||||
deleteEmpty: (get) => !get('isCreate'),
|
||||
},
|
||||
cbind: { deleteEmpty: '{!isCreate}' },
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Monthly'),
|
||||
name: 'keep-monthly',
|
||||
cbind: { deleteEmpty: '{!isCreate}' },
|
||||
},
|
||||
],
|
||||
column2: [
|
||||
@ -141,16 +138,19 @@ Ext.define('PMG.PBSInputPanel', {
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Hourly'),
|
||||
name: 'keep-hourly',
|
||||
cbind: { deleteEmpty: '{!isCreate}' },
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Weekly'),
|
||||
name: 'keep-weekly',
|
||||
cbind: { deleteEmpty: '{!isCreate}' },
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Yearly'),
|
||||
name: 'keep-yearly',
|
||||
cbind: { deleteEmpty: '{!isCreate}' },
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user