[pbs-devel] [PATCH backup 2/3] gui: tfa: show when entries were created

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Jan 18 13:50:01 CET 2021


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 www/config/TfaView.js | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/www/config/TfaView.js b/www/config/TfaView.js
index 883c9508..092153d8 100644
--- a/www/config/TfaView.js
+++ b/www/config/TfaView.js
@@ -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,
-- 
2.20.1






More information about the pbs-devel mailing list