mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-25 13:33:40 +00:00
ui: ceph installer: make replicas & minreplicas fields dependent
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
parent
443cb6d78c
commit
836d66f704
@ -124,6 +124,12 @@ Ext.define('PVE.ceph.CephInstallWizard', {
|
||||
cbind: {
|
||||
nodename: '{nodename}'
|
||||
},
|
||||
viewModel: {
|
||||
data: {
|
||||
replicas: undefined,
|
||||
minreplicas: undefined
|
||||
}
|
||||
},
|
||||
listeners: {
|
||||
activate: function() {
|
||||
this.up('pveCephInstallWizard').down('#submit').setText(gettext('Next'));
|
||||
@ -164,21 +170,33 @@ Ext.define('PVE.ceph.CephInstallWizard', {
|
||||
xtype: 'numberfield',
|
||||
name: 'size',
|
||||
fieldLabel: 'Number of replicas',
|
||||
value: '',
|
||||
bind: {
|
||||
value: '{replicas}',
|
||||
allowBlank : '{!minreplicas}'
|
||||
},
|
||||
maxValue: 7,
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
emptyText: '3'
|
||||
emptyText: '3',
|
||||
setAllowBlank: function(allowBlank) {
|
||||
this.allowBlank = allowBlank;
|
||||
this.validate();
|
||||
}
|
||||
},
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
name: 'min_size',
|
||||
fieldLabel: 'Minimum replicas',
|
||||
value: '',
|
||||
maxValue: 7,
|
||||
bind: {
|
||||
maxValue: '{replicas}',
|
||||
value: '{minreplicas}',
|
||||
allowBlank: '{!replicas}'
|
||||
},
|
||||
minValue: 1,
|
||||
allowBlank: true,
|
||||
emptyText: '2'
|
||||
emptyText: '2',
|
||||
setAllowBlank: function(allowBlank) {
|
||||
this.allowBlank = allowBlank;
|
||||
this.validate();
|
||||
}
|
||||
},
|
||||
{
|
||||
xtype: 'numberfield',
|
||||
|
Loading…
Reference in New Issue
Block a user