mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 13:45:21 +00:00
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:
parent
63584726fc
commit
003e502f87
@ -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: [
|
||||
|
Loading…
Reference in New Issue
Block a user