Commit 4aefa8e7 authored by Dietmar Maurer's avatar Dietmar Maurer

backup: allow to select compression (lzo/gzip)

parent 882131be
......@@ -23,6 +23,7 @@ JSSRC= \
form/ComboGrid.js \
form/KVComboBox.js \
form/Boolean.js \
form/CompressionSelector.js \
form/PoolSelector.js \
form/GroupSelector.js \
form/UserSelector.js \
......
......@@ -159,11 +159,10 @@ Ext.define('PVE.dc.BackupEdit', {
name: 'mailto'
},
{
xtype: 'pvecheckbox',
xtype: 'pveCompressionSelector',
fieldLabel: gettext('Compression'),
name: 'compress',
checked: true,
uncheckedValue: 0
value: me.create ? 'lzo' : ''
},
{
xtype: 'numberfield',
......
Ext.define('PVE.form.CompressionSelector', {
extend: 'PVE.form.KVComboBox',
alias: ['widget.pveCompressionSelector'],
initComponent: function() {
var me = this;
me.data = [
['', 'none'],
['lzo', 'LZO (fast)'],
['gzip', 'GZIP (good)'],
];
me.callParent();
}
});
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