ui: cluster: code cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-05-08 13:31:25 +02:00
parent f433ad19d2
commit 9a9f1ac5aa

View File

@ -70,21 +70,27 @@ Ext.define('PVE.ClusterInfoWindow', {
{ {
xtype: 'textfield', xtype: 'textfield',
fieldLabel: gettext('IP Address'), fieldLabel: gettext('IP Address'),
cbind: { value: '{joinInfo.ipAddress}' }, cbind: {
editable: false value: '{joinInfo.ipAddress}',
},
editable: false,
}, },
{ {
xtype: 'textfield', xtype: 'textfield',
fieldLabel: gettext('Fingerprint'), fieldLabel: gettext('Fingerprint'),
cbind: { value: '{joinInfo.fingerprint}' }, cbind: {
editable: false value: '{joinInfo.fingerprint}',
},
editable: false,
}, },
{ {
xtype: 'textarea', xtype: 'textarea',
inputId: 'pveSerializedClusterInfo', inputId: 'pveSerializedClusterInfo',
fieldLabel: gettext('Join Information'), fieldLabel: gettext('Join Information'),
grow: true, grow: true,
cbind: { joinInfo: '{joinInfo}' }, cbind: {
joinInfo: '{joinInfo}',
},
editable: false, editable: false,
listeners: { listeners: {
afterrender: function(field) { afterrender: function(field) {
@ -320,7 +326,7 @@ Ext.define('PVE.ClusterJoinNodeWindow', {
allowBlank: false, allowBlank: false,
bind: { bind: {
value: '{info.ip}', value: '{info.ip}',
readOnly: '{assistedEntry.checked}' readOnly: '{assistedEntry.checked}',
}, },
name: 'hostname' name: 'hostname'
}, },