[pve-devel] [PATCH pve-manager 2/3] adapt BondSelector to our ExtJS6 KVComboBox parameters

Emmanuel Kasper e.kasper at proxmox.com
Mon Feb 29 16:29:36 CET 2016


---
 www/manager6/form/BondModeSelector.js | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/www/manager6/form/BondModeSelector.js b/www/manager6/form/BondModeSelector.js
index 4504e8b..97445d5 100644
--- a/www/manager6/form/BondModeSelector.js
+++ b/www/manager6/form/BondModeSelector.js
@@ -8,14 +8,14 @@ Ext.define('PVE.form.BondModeSelector', {
 	var me = this;
 
 	if (me.openvswitch) {
-           me.data = [ 
+           me.comboItems = [
 	       ['active-backup', 'active-backup'],
 	       ['balance-slb', 'balance-slb'],
 	       ['lacp-balance-slb', 'LACP (balance-slb)'],
 	       ['lacp-balance-tcp', 'LACP (balance-tcp)']
 	   ];
 	} else {
-            me.data = [ 
+            me.comboItems = [
 		['balance-rr', 'balance-rr'], 
 		['active-backup', 'active-backup'], 
 		['balance-xor', 'balance-xor'], 
@@ -33,16 +33,10 @@ Ext.define('PVE.form.BondModeSelector', {
 Ext.define('PVE.form.BondPolicySelector', {
     extend: 'PVE.form.KVComboBox',
     alias: ['widget.bondPolicySelector'],
-
-    initComponent: function() {
-	var me = this;
-        me.data = [
+    comboItems: [
 	    ['layer2', 'layer2'],
 	    ['layer2+3', 'layer2+3'], 
 	    ['layer3+4', 'layer3+4']
-	];
- 
-	me.callParent();
-    }
+    ],
 });
 
-- 
2.1.4





More information about the pve-devel mailing list