]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: storage content: fix verify time tooltip
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 17:24:36 +0000 (18:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Nov 2020 17:31:17 +0000 (18:31 +0100)
this was partial copied over from PBS, but there we pull out the task
startime alreay when building the store.

As eslint mentions, task was unused, verify_time not defined, fix
that.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/grid/BackupView.js

index db492a7e7b3d6d09259321d7fa50eafd2077f3aa..89a4bc2fa9085569dd189f003d362ff6edb6a0c1 100644 (file)
@@ -280,6 +280,8 @@ Ext.define('PVE.grid.BackupView', {
                            iconCls = 'check good';
                            let now = Date.now() / 1000;
                            let task = Proxmox.Utils.parse_task_upid(v.upid);
+                           let verify_time = Proxmox.Utils.render_timestamp(task.starttime);
+                           tip = `Last verify task started on ${verify_time}`;
                            if (now - v.starttime > 30 * 24 * 60 * 60) {
                                tip = `Last verify task over 30 days ago: ${verify_time}`;
                                iconCls = 'check warning';