[pve-devel] [PATCH manager] lxc: don't show an empty ssh-public-key field in summary
Dietmar Maurer
dietmar at proxmox.com
Thu Nov 10 16:28:06 CET 2016
Thanks, I found a slightly better fix, using 'pvetextfield'. Will apply this:
- me.sshkeyfield = Ext.createWidget('textfield', {
- xtype: 'textfield',
+ me.sshkeyfield = Ext.createWidget('pvetextfield', {
thanks.
> On November 10, 2016 at 2:53 PM Wolfgang Bumiller <w.bumiller at proxmox.com>
> wrote:
>
>
> ---
> www/manager6/lxc/CreateWizard.js | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/www/manager6/lxc/CreateWizard.js
> b/www/manager6/lxc/CreateWizard.js
> index 46f4e81..7cca69e 100644
> --- a/www/manager6/lxc/CreateWizard.js
> +++ b/www/manager6/lxc/CreateWizard.js
> @@ -268,6 +268,10 @@ Ext.define('PVE.lxc.CreateWizard', {
> if (key === 'password') { // don't show pw
> return;
> }
> + if (key === 'ssh-public-keys' && !kv['ssh-public-keys'].length) {
> + // don't show empty public keys
> + return;
> + }
> var html = Ext.htmlEncode(Ext.JSON.encode(value));
> data.push({ key: key, value: value });
> });
> --
> 2.1.4
>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
More information about the pve-devel
mailing list