mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 04:43:11 +00:00
fix compression selector
This commit is contained in:
parent
341e4b0bfa
commit
b34b68c2b8
8
debian/changelog.Debian
vendored
8
debian/changelog.Debian
vendored
@ -1,3 +1,11 @@
|
||||
pve-manager (2.0-22) unstable; urgency=low
|
||||
|
||||
* fix lint errors
|
||||
|
||||
* fix compression selector
|
||||
|
||||
-- Proxmox Support Team <support@proxmox.com> Fri, 10 Feb 2012 12:26:39 +0100
|
||||
|
||||
pve-manager (2.0-21) unstable; urgency=low
|
||||
|
||||
* fix postinst script (write correct /root/.forward)
|
||||
|
@ -2,7 +2,7 @@ RELEASE=2.0
|
||||
|
||||
VERSION=2.0
|
||||
PACKAGE=pve-manager
|
||||
PACKAGERELEASE=21
|
||||
PACKAGERELEASE=22
|
||||
|
||||
BINDIR=${DESTDIR}/usr/bin
|
||||
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
||||
|
@ -97,7 +97,7 @@ Ext.define('PVE.form.ComboGrid', {
|
||||
|
||||
if (me.enableAfterLoad) {
|
||||
delete me.enableAfterLoad;
|
||||
me.setDisabled(false);
|
||||
me.setDisabled(false);
|
||||
}
|
||||
|
||||
var def = me.getValue();
|
||||
|
@ -6,20 +6,9 @@ Ext.define('PVE.form.CompressionSelector', {
|
||||
var me = this;
|
||||
|
||||
me.data = [
|
||||
['', 'Default (qemu64)'],
|
||||
['486', '486'],
|
||||
['athlon', 'athlon'],
|
||||
['core2duo', 'core2duo'],
|
||||
['coreduo', 'coreduo'],
|
||||
['kvm32', 'kvm32'],
|
||||
['kvm64', 'kvm64'],
|
||||
['pentium', 'pentium'],
|
||||
['pentium2', 'pentium2'],
|
||||
['pentium3', 'pentium3'],
|
||||
['phenom', 'phenom'],
|
||||
['qemu32', 'qemu32'],
|
||||
['qemu64', 'qemu64'],
|
||||
['host', 'host']
|
||||
['', 'none'],
|
||||
['lzo', 'LZO (fast)'],
|
||||
['gzip', 'GZIP (good)']
|
||||
];
|
||||
|
||||
me.callParent();
|
||||
|
@ -77,7 +77,7 @@ Ext.define('PVE.qemu.CreateWizard', {
|
||||
name: 'pool',
|
||||
value: '',
|
||||
allowBlank: true
|
||||
},
|
||||
}
|
||||
],
|
||||
onGetValues: function(values) {
|
||||
if (!values.name) {
|
||||
|
@ -43,10 +43,9 @@ Ext.define('PVE.window.Backup', {
|
||||
name: 'mode'
|
||||
},
|
||||
{
|
||||
xtype: 'pvecheckbox',
|
||||
xtype: 'pveCompressionSelector',
|
||||
name: 'compress',
|
||||
uncheckedValue: 0,
|
||||
checked: true,
|
||||
value: 'lzo',
|
||||
fieldLabel: 'Compress'
|
||||
}
|
||||
]
|
||||
@ -59,16 +58,18 @@ Ext.define('PVE.window.Backup', {
|
||||
handler: function(){
|
||||
var storage = storagesel.getValue();
|
||||
var values = form.getValues();
|
||||
console.dir(me.vmid, me.nodename, values.online);
|
||||
|
||||
PVE.Utils.API2Request({
|
||||
url: '/nodes/' + me.nodename + '/vzdump',
|
||||
params: {
|
||||
var params = {
|
||||
storage: storage,
|
||||
vmid: me.vmid,
|
||||
compress: values.compress,
|
||||
mode: values.mode
|
||||
},
|
||||
};
|
||||
if (values.compress) {
|
||||
params.compress = values.compress;
|
||||
}
|
||||
|
||||
PVE.Utils.API2Request({
|
||||
url: '/nodes/' + me.nodename + '/vzdump',
|
||||
params: params,
|
||||
method: 'POST',
|
||||
failure: function (response, opts) {
|
||||
Ext.Msg.alert('Error',response.htmlStatus);
|
||||
|
Loading…
Reference in New Issue
Block a user