]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
ui: cluster: use new network selector
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 Jun 2019 19:51:46 +0000 (21:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 Jun 2019 19:51:46 +0000 (21:51 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/ClusterEdit.js

index d0f6b25c3eb907a97d0511372391d9e41e908a17..42491722a0fec7b53f8aaaac28f70c2c781ce9e3 100644 (file)
@@ -21,10 +21,13 @@ Ext.define('PVE.ClusterCreateWindow', {
            name: 'clustername'
        },
        {
-           xtype: 'proxmoxtextfield',
+           xtype: 'proxmoxNetworkSelector',
            fieldLabel: gettext('Ring 0 Address'),
            emptyText: gettext("Optional, defaults to IP resolved by node's hostname"),
            name: 'link0',
+           autoSelect: false,
+           valueField: 'address',
+           displayField: 'address',
            skipEmptyText: true
        }
        // TODO: for advanced options: all links!
@@ -296,19 +299,25 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
        ],
        column2: [
            {
-               xtype: 'proxmoxtextfield',
+               xtype: 'proxmoxNetworkSelector',
                fieldLabel: gettext('Corosync Ring 0'),
                bind: {
                    emptyText: '{ring0EmptyText}',
                    allowBlank: '{!info.ring0Needed}'
                },
                skipEmptyText: true,
+               autoSelect: false,
+               valueField: 'address',
+               displayField: 'address',
                name: 'link0'
            },
            {
-               xtype: 'proxmoxtextfield',
+               xtype: 'proxmoxNetworkSelector',
                fieldLabel: gettext('Corosync Ring 1'),
                skipEmptyText: true,
+               autoSelect: false,
+               valueField: 'address',
+               displayField: 'address',
                bind: {
                    disabled: '{!info.ring1Possible}'
                },