]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/ha/GroupEdit.js
1 Ext
.define('PVE.ha.GroupInputPanel', {
2 extend
: 'PVE.panel.InputPanel',
6 onGetValues: function(values
) {
10 values
.type
= 'group';
16 initComponent : function() {
21 xtype
: me
.create
? 'textfield' : 'displayfield',
23 value
: me
.groupId
|| '',
29 xtype
: 'pveNodeSelector',
31 fieldLabel
: gettext('Nodes'),
43 fieldLabel
: 'restricted'
49 fieldLabel
: 'nofailback'
57 fieldLabel
: gettext('Comment')
65 Ext
.define('PVE.ha.GroupEdit', {
66 extend
: 'PVE.window.Edit',
70 initComponent : function() {
73 me
.create
= !me
.groupId
;
76 me
.url
= '/api2/extjs/cluster/ha/groups';
79 me
.url
= '/api2/extjs/cluster/ha/groups/' + me
.groupId
;
83 var ipanel
= Ext
.create('PVE.ha.GroupInputPanel', {
89 subject
: gettext('HA Group'),
97 success: function(response
, options
) {
98 var values
= response
.result
.data
;
101 values
.nodes
= values
.nodes
.split(',');
104 ipanel
.setValues(values
);