fieldLabel: gettext('Cluster Name'),
allowBlank: false,
maxLength: 15,
- name: 'clustername'
+ name: 'clustername',
},
{
xtype: 'fieldcontainer',
{
xtype: 'pveCorosyncLinkEditor',
infoText: gettext("Multiple links are used as failover, lower numbers have higher priority."),
- name: 'links'
+ name: 'links',
},
- ]
- }]
- }
+ ],
+ }],
+ },
});
Ext.define('PVE.ClusterInfoWindow', {
joinInfo: {
ipAddress: undefined,
fingerprint: undefined,
- totem: {}
+ totem: {},
},
items: [
xtype: 'component',
border: false,
padding: '10 10 10 10',
- html: gettext("Copy the Join Information here and use it on the node you want to add.")
+ html: gettext("Copy the Join Information here and use it on the node you want to add."),
},
{
xtype: 'container',
var jsons = Ext.JSON.encode(field.joinInfo);
var base64s = Ext.util.Base64.encode(jsons);
field.setValue(base64s);
- }
- }
- }
- ]
- }
+ },
+ },
+ },
+ ],
+ },
],
dockedItems: [{
dock: 'bottom',
el.select();
document.execCommand("copy");
},
- text: gettext('Copy Information')
- }]
- }]
+ text: gettext('Copy Information'),
+ }],
+ }],
});
Ext.define('PVE.ClusterJoinNodeWindow', {
info: {
fp: '',
ip: '',
- clusterName: ''
+ clusterName: '',
},
hasAssistedInfo: false,
},
'#': {
close: function() {
delete PVE.Utils.silenceAuthFailures;
- }
+ },
},
'proxmoxcheckbox[name=assistedEntry]': {
- change: 'onInputTypeChange'
+ change: 'onInputTypeChange',
},
'textarea[name=serializedinfo]': {
change: 'recomputeSerializedInfo',
- enable: 'resetField'
+ enable: 'resetField',
},
'textfield': {
- disable: 'resetField'
- }
+ disable: 'resetField',
+ },
},
resetField: function(field) {
field.reset();
let info = {
fp: '',
ip: '',
- clusterName: ''
+ clusterName: '',
};
if (!(joinInfo && joinInfo.totem)) {
number: linkNumber,
value: '',
text: peerLink ? Ext.String.format(gettext("peer's link address: {0}"), peerLink) : '',
- allowBlank: false
+ allowBlank: false,
};
});
info = {
ip: joinInfo.ipAddress,
fp: joinInfo.fingerprint,
- clusterName: joinInfo.totem.cluster_name
+ clusterName: joinInfo.totem.cluster_name,
};
field.valid = true;
vm.set('hasAssistedInfo', true);
}
vm.set('info', info);
- }
+ },
},
submit: function() {
Ext.Msg.show({
title: gettext('Join Task Finished'),
icon: Ext.Msg.INFO,
- msg: txt
+ msg: txt,
});
}
},
value: true,
autoEl: {
tag: 'div',
- 'data-qtip': gettext('Select if join information should be extracted from pasted cluster information, deselect for manual entering')
+ 'data-qtip': gettext('Select if join information should be extracted from pasted cluster information, deselect for manual entering'),
},
- boxLabel: gettext('Assisted join: Paste encoded cluster join information and enter password.')
+ boxLabel: gettext('Assisted join: Paste encoded cluster join information and enter password.'),
},
{
xtype: 'textarea',
},
bind: {
disabled: '{!assistedEntry.checked}',
- hidden: '{!assistedEntry.checked}'
+ hidden: '{!assistedEntry.checked}',
},
- value: ''
+ value: '',
},
{
xtype: 'panel',
width: 776,
layout: {
type: 'hbox',
- align: 'center'
+ align: 'center',
},
bind: {
hidden: '{!showClusterFields}',
value: '{info.ip}',
readOnly: '{assistedEntry.checked}',
},
- name: 'hostname'
+ name: 'hostname',
},
{
xtype: 'textfield',
emptyText: gettext("Peer's root password"),
fieldLabel: gettext('Password'),
allowBlank: false,
- name: 'password'
+ name: 'password',
},
- ]
+ ],
},
{
xtype: 'textfield',
readOnly: '{assistedEntry.checked}',
hidden: '{!showClusterFields}',
},
- name: 'fingerprint'
+ name: 'fingerprint',
},
{
xtype: 'fieldcontainer',
xtype: 'pveCorosyncLinkEditor',
itemId: 'linkEditor',
reference: 'linkEditor',
- allowNumberEdit: false
+ allowNumberEdit: false,
},
- ]
- }]
+ ],
+ }],
});