[pve-devel] [PATCH pve-manager 1/3] Added UI elements for the backup job disabling function
Emmanuel Kasper
e.kasper at proxmox.com
Mon Feb 15 13:29:57 CET 2016
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.
This patch was missing in manager6
---
www/manager6/dc/Backup.js | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/www/manager6/dc/Backup.js b/www/manager6/dc/Backup.js
index 1281756..1a2a241 100644
--- a/www/manager6/dc/Backup.js
+++ b/www/manager6/dc/Backup.js
@@ -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
];
@@ -397,6 +405,12 @@ Ext.define('PVE.dc.BackupView', {
],
columns: [
{
+ header: gettext('Enabled'),
+ width: 50,
+ dataIndex: 'enabled',
+ sortable: true,
+ },
+ {
header: gettext('Node'),
width: 100,
sortable: true,
@@ -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' }
]
});
-});
\ No newline at end of file
+});
--
2.1.4
More information about the pve-devel
mailing list