mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-06-10 03:19:00 +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;
|
||||
|
||||
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();
|
||||
}
|
||||
],
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user