mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-10 19:56:17 +00:00
adapt BondSelector to our ExtJS6 KVComboBox parameters
This commit is contained in:
parent
a2f35eb2ea
commit
bfb51ac5d0
@ -8,14 +8,14 @@ Ext.define('PVE.form.BondModeSelector', {
|
|||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
if (me.openvswitch) {
|
if (me.openvswitch) {
|
||||||
me.data = [
|
me.comboItems = [
|
||||||
['active-backup', 'active-backup'],
|
['active-backup', 'active-backup'],
|
||||||
['balance-slb', 'balance-slb'],
|
['balance-slb', 'balance-slb'],
|
||||||
['lacp-balance-slb', 'LACP (balance-slb)'],
|
['lacp-balance-slb', 'LACP (balance-slb)'],
|
||||||
['lacp-balance-tcp', 'LACP (balance-tcp)']
|
['lacp-balance-tcp', 'LACP (balance-tcp)']
|
||||||
];
|
];
|
||||||
} else {
|
} else {
|
||||||
me.data = [
|
me.comboItems = [
|
||||||
['balance-rr', 'balance-rr'],
|
['balance-rr', 'balance-rr'],
|
||||||
['active-backup', 'active-backup'],
|
['active-backup', 'active-backup'],
|
||||||
['balance-xor', 'balance-xor'],
|
['balance-xor', 'balance-xor'],
|
||||||
@ -33,16 +33,10 @@ Ext.define('PVE.form.BondModeSelector', {
|
|||||||
Ext.define('PVE.form.BondPolicySelector', {
|
Ext.define('PVE.form.BondPolicySelector', {
|
||||||
extend: 'PVE.form.KVComboBox',
|
extend: 'PVE.form.KVComboBox',
|
||||||
alias: ['widget.bondPolicySelector'],
|
alias: ['widget.bondPolicySelector'],
|
||||||
|
comboItems: [
|
||||||
initComponent: function() {
|
|
||||||
var me = this;
|
|
||||||
me.data = [
|
|
||||||
['layer2', 'layer2'],
|
['layer2', 'layer2'],
|
||||||
['layer2+3', 'layer2+3'],
|
['layer2+3', 'layer2+3'],
|
||||||
['layer3+4', 'layer3+4']
|
['layer3+4', 'layer3+4']
|
||||||
];
|
],
|
||||||
|
|
||||||
me.callParent();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user