mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 18:49:41 +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: {
|
info: {
|
||||||
fp: '',
|
fp: '',
|
||||||
ip: '',
|
ip: '',
|
||||||
|
clusterName: '',
|
||||||
ring0Needed: false,
|
ring0Needed: false,
|
||||||
ring1Possible: false,
|
ring1Possible: false,
|
||||||
ring1Needed: false
|
ring1Needed: false
|
||||||
@ -207,7 +208,8 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
|
|||||||
fp: '',
|
fp: '',
|
||||||
ring1Needed: false,
|
ring1Needed: false,
|
||||||
ring1Possible: false,
|
ring1Possible: false,
|
||||||
ip: ''
|
ip: '',
|
||||||
|
clusterName: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
var totem = {};
|
var totem = {};
|
||||||
@ -224,7 +226,8 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
|
|||||||
fp: joinInfo.fingerprint,
|
fp: joinInfo.fingerprint,
|
||||||
ring0Needed: ring0Needed,
|
ring0Needed: ring0Needed,
|
||||||
ring1Possible: !!joinInfo.totem['interface']['1'],
|
ring1Possible: !!joinInfo.totem['interface']['1'],
|
||||||
ring1Needed: !!joinInfo.totem['interface']['1']
|
ring1Needed: !!joinInfo.totem['interface']['1'],
|
||||||
|
clusterName: joinInfo.totem['cluster_name']
|
||||||
};
|
};
|
||||||
totem = joinInfo.totem;
|
totem = joinInfo.totem;
|
||||||
field.valid = true;
|
field.valid = true;
|
||||||
@ -288,6 +291,16 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
|
|||||||
},
|
},
|
||||||
value: ''
|
value: ''
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
xtype: 'textfield',
|
||||||
|
fieldLabel: gettext('Cluster name'),
|
||||||
|
readOnly: true,
|
||||||
|
submitValue: false,
|
||||||
|
bind: {
|
||||||
|
hidden: '{!assistedEntry.checked}',
|
||||||
|
value: '{info.clusterName}'
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
xtype: 'inputpanel',
|
xtype: 'inputpanel',
|
||||||
column1: [
|
column1: [
|
||||||
|
Loading…
Reference in New Issue
Block a user