[pve-devel] [RFC 2/2] Added UI elements for the backup job disabling function
Thomas Lamprecht
t.lamprecht at proxmox.com
Mon Jul 20 09:27:42 CEST 2015
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 at proxmox.com>
---
www/manager/dc/Backup.js | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/www/manager/dc/Backup.js b/www/manager/dc/Backup.js
index 9cc2f7d..d9461ee 100644
--- a/www/manager/dc/Backup.js
+++ b/www/manager/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