ui: datastore options: use new onSetValues over setValues

The `onSetValues` (pedant to `onGetValues`) got added relatively
recently to widget toolkits input panel. Using it avoids the need to
hard-code some "dynamic override" calling semantics.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-11-28 14:00:14 +01:00
parent 85f1419313
commit 8f373d0718

View File

@ -182,10 +182,7 @@ Ext.define('PBS.Datastore.Options', {
}
return { tuning };
},
setValues: function(values) {
values = PBS.Utils.parsePropertyString(values?.tuning);
return Proxmox.panel.InputPanel.prototype.setValues.call(this, values);
},
onSetValues: values => PBS.Utils.parsePropertyString(values?.tuning),
items: [
{
xtype: 'proxmoxKVComboBox',