mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 09:58:29 +00:00
ui: rbd: cephfs: add keyring/secret field for external clusters
Manual switching of xtype because binding 'hidden' does not work with pmxDisplayEditField. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
parent
85df37251f
commit
42c455fcd7
@ -101,20 +101,33 @@ Ext.define('PVE.storage.CephFSInputPanel', {
|
||||
},
|
||||
];
|
||||
|
||||
me.columnB = [{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'pveceph',
|
||||
reference: 'pvecephRef',
|
||||
bind: {
|
||||
disabled: '{!pvecephPossible}',
|
||||
value: '{pveceph}',
|
||||
me.columnB = [
|
||||
{
|
||||
xtype: me.isCreate ? 'textfield' : 'displayfield',
|
||||
name: 'keyring',
|
||||
fieldLabel: 'Secret',
|
||||
value: me.isCreate ? '' : '***********',
|
||||
allowBlank: false,
|
||||
bind: {
|
||||
hidden: '{pveceph}',
|
||||
disabled: '{pveceph}',
|
||||
},
|
||||
},
|
||||
checked: true,
|
||||
uncheckedValue: 0,
|
||||
submitValue: false,
|
||||
hidden: !me.isCreate,
|
||||
boxLabel: gettext('Use Proxmox VE managed hyper-converged cephFS'),
|
||||
}];
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'pveceph',
|
||||
reference: 'pvecephRef',
|
||||
bind: {
|
||||
disabled: '{!pvecephPossible}',
|
||||
value: '{pveceph}',
|
||||
},
|
||||
checked: true,
|
||||
uncheckedValue: 0,
|
||||
submitValue: false,
|
||||
hidden: !me.isCreate,
|
||||
boxLabel: gettext('Use Proxmox VE managed hyper-converged cephFS'),
|
||||
},
|
||||
];
|
||||
|
||||
me.callParent();
|
||||
},
|
||||
|
@ -201,6 +201,17 @@ Ext.define('PVE.storage.RBDInputPanel', {
|
||||
];
|
||||
|
||||
me.columnB = [
|
||||
{
|
||||
xtype: me.isCreate ? 'textarea' : 'displayfield',
|
||||
name: 'keyring',
|
||||
fieldLabel: 'Keyring',
|
||||
value: me.isCreate ? '' : '***********',
|
||||
allowBlank: false,
|
||||
bind: {
|
||||
hidden: '{pveceph}',
|
||||
disabled: '{pveceph}',
|
||||
},
|
||||
},
|
||||
{
|
||||
xtype: 'proxmoxcheckbox',
|
||||
name: 'pveceph',
|
||||
|
Loading…
Reference in New Issue
Block a user