node tasks: add action column with button to view task

This is primarily aimed to make it more discoverable that one can open
tasks directly, instead of selecting and clicking the view button at the
top.

The chevron-right icon was chosen, to be more in alignmend with other
places where we use it. For now, mainly PBS.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
Tested-by: Friedrich Weber <f.weber@proxmox.com>
 [TL: reduce indentation level]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Aaron Lauterer 2024-11-18 11:45:28 +01:00 committed by Thomas Lamprecht
parent 267bc5972a
commit 04f612a65a

View File

@ -441,6 +441,23 @@ Ext.define('Proxmox.node.Tasks', {
return Proxmox.Utils.format_task_status(value); return Proxmox.Utils.format_task_status(value);
}, },
}, },
{
xtype: 'actioncolumn',
width: 30,
align: 'center',
tooltip: gettext('Actions'),
items: [{
iconCls: 'fa fa-chevron-right',
tooltip: gettext('View Task'),
handler: function(_grid, _rowIndex, _colIndex, _item, _e, rec) {
Ext.create('Proxmox.window.TaskViewer', {
autoShow: true,
upid: rec.data.upid,
endtime: rec.data.endtime,
});
},
}],
},
], ],
initComponent: function() { initComponent: function() {