public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] ui: rbd: add keyring field for external clusters
@ 2021-11-26 15:28 Aaron Lauterer
  2021-11-26 15:49 ` Aaron Lauterer
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Lauterer @ 2021-11-26 15:28 UTC (permalink / raw)
  To: pve-devel

Manual switching of xtype because binding 'hidden' does not work with
pmxDisplayEditField.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
---
 www/manager6/storage/RBDEdit.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
index 35568b98..3dcfea20 100644
--- a/www/manager6/storage/RBDEdit.js
+++ b/www/manager6/storage/RBDEdit.js
@@ -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',
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [pve-devel] [PATCH manager] ui: rbd: add keyring field for external clusters
  2021-11-26 15:28 [pve-devel] [PATCH manager] ui: rbd: add keyring field for external clusters Aaron Lauterer
@ 2021-11-26 15:49 ` Aaron Lauterer
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Lauterer @ 2021-11-26 15:49 UTC (permalink / raw)
  To: pve-devel

please ignore this. forgot to also do the cephfs counterpart and docs

On 11/26/21 16:28, Aaron Lauterer wrote:
> Manual switching of xtype because binding 'hidden' does not work with
> pmxDisplayEditField.
> 
> Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
> ---
>   www/manager6/storage/RBDEdit.js | 11 +++++++++++
>   1 file changed, 11 insertions(+)
> 
> diff --git a/www/manager6/storage/RBDEdit.js b/www/manager6/storage/RBDEdit.js
> index 35568b98..3dcfea20 100644
> --- a/www/manager6/storage/RBDEdit.js
> +++ b/www/manager6/storage/RBDEdit.js
> @@ -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',
> 




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-26 15:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-26 15:28 [pve-devel] [PATCH manager] ui: rbd: add keyring field for external clusters Aaron Lauterer
2021-11-26 15:49 ` Aaron Lauterer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal