]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
task viewer: show task endtime and duration in status
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 15 Jun 2020 14:07:10 +0000 (16:07 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 Jun 2020 11:22:59 +0000 (13:22 +0200)
commitc9d603afff59e295542ae41e37ca7b49283bb7dd
tree3711ecaa71a904a3ce3720c3e46926f2027f3846
parent402991a79dcc6859ff099a01f9b83b4a3a440527
task viewer: show task endtime and duration in status

But only when the caller gives us the endtime, since the status API
call does not give us the endtime.

As we stop updating the store once a task isn't running anymore the
fallback to current unix utc timestamp doesn't needs an additional
check, the last one is shown static then.

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
[ Thomas: improve commit message ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/node/Tasks.js
src/window/TaskViewer.js