Added UI elements for the backup job disabling function

Added a column in the datacenter backup job overview to see if a job
is enabled or not. Added checkbox to the input panel, which enables
or disables a job.
This closes bug/feature request 492.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2015-07-20 09:27:42 +02:00 committed by Dietmar Maurer
parent c8653ebb08
commit 064b74ac7c

View File

@ -180,6 +180,14 @@ Ext.define('PVE.dc.BackupEdit', {
value: 'snapshot',
name: 'mode'
},
{
xtype: 'pvecheckbox',
fieldLabel: gettext('Enable'),
name: 'enabled',
uncheckedValue: 0,
defaultValue: 1,
checked: true
},
vmidField
];
@ -396,6 +404,12 @@ Ext.define('PVE.dc.BackupView', {
edit_btn
],
columns: [
{
header: gettext('Enabled'),
width: 50,
dataIndex: 'enabled',
sortable: true,
},
{
header: gettext('Node'),
width: 100,
@ -463,6 +477,7 @@ Ext.define('PVE.dc.BackupView', {
'id', 'starttime', 'dow',
'storage', 'node', 'vmid', 'exclude',
'mailto',
{ name: 'enabled', type: 'boolean' },
{ name: 'all', type: 'boolean' },
{ name: 'snapshot', type: 'boolean' },
{ name: 'stop', type: 'boolean' },
@ -470,4 +485,4 @@ Ext.define('PVE.dc.BackupView', {
{ name: 'compress', type: 'boolean' }
]
});
});
});