items: [
storagesel,
{
- xtype: 'pvecheckbox',
- name: 'compress',
- uncheckedValue: 0,
- checked: true,
- fieldLabel: 'Compress'
+ xtype: 'pveBackupModeSelector',
+ fieldLabel: 'Mode',
+ value: 'snapshot',
+ name: 'mode'
},
{
xtype: 'pvecheckbox',
- name: 'snapshot',
+ name: 'compress',
uncheckedValue: 0,
checked: true,
- fieldLabel: 'Snapshot mode'
+ fieldLabel: 'Compress'
}
]
});
storage: storage,
vmid: me.vmid,
compress: values.compress,
- snapshot: values.snapshot
+ mode: values.mode
},
method: 'POST',
failure: function (response, opts) {