From 8f373d0718c85e86813c250b3817a437b55bb9ad Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 28 Nov 2022 14:00:14 +0100 Subject: [PATCH] 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 --- www/datastore/OptionView.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/datastore/OptionView.js b/www/datastore/OptionView.js index 05169c10..ed623d07 100644 --- a/www/datastore/OptionView.js +++ b/www/datastore/OptionView.js @@ -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',