Commit 064b74ac authored by Thomas Lamprecht's avatar Thomas Lamprecht Committed by Dietmar Maurer

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: 's avatarThomas Lamprecht <t.lamprecht@proxmox.com>
parent c8653ebb
...@@ -180,6 +180,14 @@ Ext.define('PVE.dc.BackupEdit', { ...@@ -180,6 +180,14 @@ Ext.define('PVE.dc.BackupEdit', {
value: 'snapshot', value: 'snapshot',
name: 'mode' name: 'mode'
}, },
{
xtype: 'pvecheckbox',
fieldLabel: gettext('Enable'),
name: 'enabled',
uncheckedValue: 0,
defaultValue: 1,
checked: true
},
vmidField vmidField
]; ];
...@@ -396,6 +404,12 @@ Ext.define('PVE.dc.BackupView', { ...@@ -396,6 +404,12 @@ Ext.define('PVE.dc.BackupView', {
edit_btn edit_btn
], ],
columns: [ columns: [
{
header: gettext('Enabled'),
width: 50,
dataIndex: 'enabled',
sortable: true,
},
{ {
header: gettext('Node'), header: gettext('Node'),
width: 100, width: 100,
...@@ -463,6 +477,7 @@ Ext.define('PVE.dc.BackupView', { ...@@ -463,6 +477,7 @@ Ext.define('PVE.dc.BackupView', {
'id', 'starttime', 'dow', 'id', 'starttime', 'dow',
'storage', 'node', 'vmid', 'exclude', 'storage', 'node', 'vmid', 'exclude',
'mailto', 'mailto',
{ name: 'enabled', type: 'boolean' },
{ name: 'all', type: 'boolean' }, { name: 'all', type: 'boolean' },
{ name: 'snapshot', type: 'boolean' }, { name: 'snapshot', type: 'boolean' },
{ name: 'stop', type: 'boolean' }, { name: 'stop', type: 'boolean' },
...@@ -470,4 +485,4 @@ Ext.define('PVE.dc.BackupView', { ...@@ -470,4 +485,4 @@ Ext.define('PVE.dc.BackupView', {
{ name: 'compress', type: 'boolean' } { name: 'compress', type: 'boolean' }
] ]
}); });
}); });
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment