]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
tfa view: avoid showing start of unix epoch when no creation date
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 18:26:31 +0000 (19:26 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 11 Nov 2021 18:26:33 +0000 (19:26 +0100)
as that is a bit unrealistically, rather use N/A (not applicable)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/TfaView.js

index 712cdfe131871326b268f4d62bd060a442e461ef..0b477ef1e58e0ff0a58276123a4e2a3d05f3bdad 100644 (file)
@@ -234,7 +234,7 @@ Ext.define('Proxmox.panel.TfaView', {
            width: 150,
            sortable: true,
            dataIndex: 'created',
-           renderer: Proxmox.Utils.render_timestamp,
+           renderer: t => !t ? 'N/A' : Proxmox.Utils.render_timestamp(t),
        },
        {
            header: gettext('Description'),