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

backup: allow to select compression (lzo/gzip)

parent 882131be
...@@ -23,6 +23,7 @@ JSSRC= \ ...@@ -23,6 +23,7 @@ JSSRC= \
form/ComboGrid.js \ form/ComboGrid.js \
form/KVComboBox.js \ form/KVComboBox.js \
form/Boolean.js \ form/Boolean.js \
form/CompressionSelector.js \
form/PoolSelector.js \ form/PoolSelector.js \
form/GroupSelector.js \ form/GroupSelector.js \
form/UserSelector.js \ form/UserSelector.js \
......
...@@ -159,11 +159,10 @@ Ext.define('PVE.dc.BackupEdit', { ...@@ -159,11 +159,10 @@ Ext.define('PVE.dc.BackupEdit', {
name: 'mailto' name: 'mailto'
}, },
{ {
xtype: 'pvecheckbox', xtype: 'pveCompressionSelector',
fieldLabel: gettext('Compression'), fieldLabel: gettext('Compression'),
name: 'compress', name: 'compress',
checked: true, value: me.create ? 'lzo' : ''
uncheckedValue: 0
}, },
{ {
xtype: 'numberfield', 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