gui: tfa: show when entries were created

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-01-18 13:50:01 +01:00 committed by Thomas Lamprecht
parent ad5cee1d22
commit 310686726a

View File

@ -10,7 +10,7 @@ Ext.define('pbs-tfa-users', {
Ext.define('pbs-tfa-entry', {
extend: 'Ext.data.Model',
fields: ['fullid', 'type', 'description', 'enable'],
fields: ['fullid', 'type', 'description', 'created', 'enable'],
idProperty: 'fullid',
});
@ -63,6 +63,7 @@ Ext.define('PBS.config.TfaView', {
fullid: `${user.id}/${entry.id}`,
type: entry.type,
description: entry.description,
created: entry.created,
enable: entry.enable,
});
});
@ -205,6 +206,13 @@ Ext.define('PBS.config.TfaView', {
sortable: true,
dataIndex: 'type',
},
{
header: gettext('Created'),
width: 80,
sortable: true,
dataIndex: 'created',
renderer: Proxmox.Utils.render_timestamp,
},
{
header: gettext('Description'),
width: 300,