Commit 6ea2c67c authored by Dietmar Maurer's avatar Dietmar Maurer

use new pveBackupModeSelector

parent 8747655a
...@@ -37,18 +37,17 @@ Ext.define('PVE.window.Backup', { ...@@ -37,18 +37,17 @@ Ext.define('PVE.window.Backup', {
items: [ items: [
storagesel, storagesel,
{ {
xtype: 'pvecheckbox', xtype: 'pveBackupModeSelector',
name: 'compress', fieldLabel: 'Mode',
uncheckedValue: 0, value: 'snapshot',
checked: true, name: 'mode'
fieldLabel: 'Compress'
}, },
{ {
xtype: 'pvecheckbox', xtype: 'pvecheckbox',
name: 'snapshot', name: 'compress',
uncheckedValue: 0, uncheckedValue: 0,
checked: true, checked: true,
fieldLabel: 'Snapshot mode' fieldLabel: 'Compress'
} }
] ]
}); });
...@@ -68,7 +67,7 @@ Ext.define('PVE.window.Backup', { ...@@ -68,7 +67,7 @@ Ext.define('PVE.window.Backup', {
storage: storage, storage: storage,
vmid: me.vmid, vmid: me.vmid,
compress: values.compress, compress: values.compress,
snapshot: values.snapshot mode: values.mode
}, },
method: 'POST', method: 'POST',
failure: function (response, opts) { failure: function (response, opts) {
......
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