[pve-devel] applied: [PATCH manager 2/4] ui: user view: show tfa type name

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Apr 16 10:07:10 CEST 2019


On 4/11/19 11:32 AM, Wolfgang Bumiller wrote:
> Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
> ---
>  www/manager6/dc/UserView.js | 9 ++++++++-
>  1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/www/manager6/dc/UserView.js b/www/manager6/dc/UserView.js
> index e412edfb..e91486ab 100644
> --- a/www/manager6/dc/UserView.js
> +++ b/www/manager6/dc/UserView.js
> @@ -164,7 +164,14 @@ Ext.define('PVE.dc.UserView', {
>  		    width: 50,
>  		    sortable: true,
>  		    renderer: function(v) {
> -			return Proxmox.Utils.format_boolean(v !== undefined && v.length);
> +			var tfa_type = PVE.Parser.parseTfaType(v);
> +			if (tfa_type === undefined) {
> +			    return Proxmox.Utils.noText;
> +			} else if (tfa_type === 1) {
> +			    return Proxmox.Utils.yesText;
> +			} else {
> +			    return tfa_type;
> +			}
>  		    },
>  		    dataIndex: 'keys'
>  		},
> 

applied, thanks!




More information about the pve-devel mailing list