ui: datastore content: use our keep field for group pruning
sets some defaults and provides the clear trigger, so less code and slightly nicer UX. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
08b3823025
commit
01f84fcce1
@ -14,66 +14,54 @@ Ext.define('PBS.panel.PruneInputPanel', {
|
||||
|
||||
column1: [
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Last'),
|
||||
xtype: 'pbsPruneKeepInput',
|
||||
name: 'keep-last',
|
||||
fieldLabel: gettext('keep-last'),
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Daily'),
|
||||
xtype: 'pbsPruneKeepInput',
|
||||
name: 'keep-daily',
|
||||
fieldLabel: gettext('Keep Daily'),
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Monthly'),
|
||||
xtype: 'pbsPruneKeepInput',
|
||||
name: 'keep-monthly',
|
||||
fieldLabel: gettext('Keep Monthly'),
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
},
|
||||
],
|
||||
column2: [
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
xtype: 'pbsPruneKeepInput',
|
||||
fieldLabel: gettext('Keep Hourly'),
|
||||
name: 'keep-hourly',
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Weekly'),
|
||||
xtype: 'pbsPruneKeepInput',
|
||||
name: 'keep-weekly',
|
||||
fieldLabel: gettext('Keep Weekly'),
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxintegerfield',
|
||||
fieldLabel: gettext('Keep Yearly'),
|
||||
xtype: 'pbsPruneKeepInput',
|
||||
name: 'keep-yearly',
|
||||
fieldLabel: gettext('Keep Yearly'),
|
||||
cbind: {
|
||||
deleteEmpty: '{!isCreate}',
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
},
|
||||
],
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user