we used an empty value for the Key-Value ComboBox for defaults. With extjs6, if the idProperty of a model is empty, they generate a name for it, which breaks our logic for submitting (currently we checked if this is empty, and send a delete command to our api) instead, we use the value 'default' and check for it when we submit Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
10 lines
324 B
JavaScript
10 lines
324 B
JavaScript
Ext.define('PVE.form.CompressionSelector', {
|
|
extend: 'PVE.form.KVComboBox',
|
|
alias: ['widget.pveCompressionSelector'],
|
|
comboItems: [
|
|
['__default__', PVE.Utils.noneText],
|
|
['lzo', 'LZO (' + gettext('fast') + ')'],
|
|
['gzip', 'GZIP (' + gettext('good') + ')']
|
|
]
|
|
});
|