gui/cluster: show cluster name from joinInfo in join dialog

To help a user identify if they put in the joinInfo for the correct
cluster.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2020-01-29 11:27:20 +01:00 committed by Thomas Lamprecht
parent 63584726fc
commit 003e502f87

View File

@ -147,6 +147,7 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
info: {
fp: '',
ip: '',
clusterName: '',
ring0Needed: false,
ring1Possible: false,
ring1Needed: false
@ -207,7 +208,8 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
fp: '',
ring1Needed: false,
ring1Possible: false,
ip: ''
ip: '',
clusterName: ''
};
var totem = {};
@ -224,7 +226,8 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
fp: joinInfo.fingerprint,
ring0Needed: ring0Needed,
ring1Possible: !!joinInfo.totem['interface']['1'],
ring1Needed: !!joinInfo.totem['interface']['1']
ring1Needed: !!joinInfo.totem['interface']['1'],
clusterName: joinInfo.totem['cluster_name']
};
totem = joinInfo.totem;
field.valid = true;
@ -288,6 +291,16 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
},
value: ''
},
{
xtype: 'textfield',
fieldLabel: gettext('Cluster name'),
readOnly: true,
submitValue: false,
bind: {
hidden: '{!assistedEntry.checked}',
value: '{info.clusterName}'
},
},
{
xtype: 'inputpanel',
column1: [